Class: RecombeeApiClient::ListUserViewPortions
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- RecombeeApiClient::ListUserViewPortions
- Defined in:
- lib/recombee_api_client/api/list_user_view_portions.rb
Overview
Lists all the view portions ever submitted by the given user.
Instance Attribute Summary collapse
-
#ensure_https ⇒ Object
Returns the value of attribute ensure_https.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#body_parameters ⇒ Object
Values of body parameters as a Hash.
-
#initialize(user_id) ⇒ ListUserViewPortions
constructor
-
*Required arguments* -
user_id
-> ID of the user whose view portions are to be listed.
-
-
#method ⇒ Object
HTTP method.
-
#path ⇒ Object
Relative path to the endpoint.
-
#query_parameters ⇒ Object
Values of query parameters as a Hash.
Methods included from HashNormalizer
#camelize, #normalize_optional
Constructor Details
#initialize(user_id) ⇒ ListUserViewPortions
-
*Required arguments*
-
user_id
-> ID of the user whose view portions are to be listed.
-
21 22 23 24 25 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 21 def initialize(user_id) @user_id = user_id @timeout = 100000 @ensure_https = false end |
Instance Attribute Details
#ensure_https ⇒ Object
Returns the value of attribute ensure_https.
15 16 17 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 15 def ensure_https @ensure_https end |
#timeout ⇒ Object
Returns the value of attribute timeout.
14 15 16 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 14 def timeout @timeout end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
13 14 15 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 13 def user_id @user_id end |
Instance Method Details
#body_parameters ⇒ Object
Values of body parameters as a Hash
33 34 35 36 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 33 def body_parameters p = Hash.new p end |
#method ⇒ Object
HTTP method
28 29 30 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 28 def method :get end |
#path ⇒ Object
Relative path to the endpoint
46 47 48 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 46 def path "/{databaseId}/users/#{@user_id}/viewportions/" end |
#query_parameters ⇒ Object
Values of query parameters as a Hash. name of parameter => value of the parameter
40 41 42 43 |
# File 'lib/recombee_api_client/api/list_user_view_portions.rb', line 40 def query_parameters params = {} params end |