Class: RecombeeApiClient::ListItemViewPortions

Inherits:
ApiRequest
  • Object
show all
Defined in:
lib/recombee_api_client/api/list_item_view_portions.rb

Overview

Lists all the view portions of an item ever submitted by different users.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashNormalizer

#camelize, #normalize_optional

Constructor Details

#initialize(item_id) ⇒ ListItemViewPortions

  • *Required arguments*

    • item_id -> ID of the item whose view portions are to be listed.



22
23
24
25
26
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 22

def initialize(item_id)
  @item_id = item_id
  @timeout = 100000
  @ensure_https = false
end

Instance Attribute Details

#ensure_httpsObject

Returns the value of attribute ensure_https.



15
16
17
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 15

def ensure_https
  @ensure_https
end

#item_idObject (readonly)

Returns the value of attribute item_id.



13
14
15
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 13

def item_id
  @item_id
end

#timeoutObject

Returns the value of attribute timeout.



14
15
16
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 14

def timeout
  @timeout
end

Instance Method Details

#body_parametersObject

Values of body parameters as a Hash



34
35
36
37
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 34

def body_parameters
  p = Hash.new
  p
end

#methodObject

HTTP method



29
30
31
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 29

def method
  :get
end

#pathObject

Relative path to the endpoint



47
48
49
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 47

def path
  "/{databaseId}/items/#{@item_id}/viewportions/"
end

#query_parametersObject

Values of query parameters as a Hash. name of parameter => value of the parameter



41
42
43
44
# File 'lib/recombee_api_client/api/list_item_view_portions.rb', line 41

def query_parameters
  params = {}
  params
end