Class: RecombeeApiClient::ListUserRatings
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- RecombeeApiClient::ListUserRatings
- Defined in:
- lib/recombee_api_client/api/list_user_ratings.rb
Overview
Lists all the ratings 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) ⇒ ListUserRatings
constructor
-
*Required arguments* -
user_id
-> ID of the user whose ratings 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) ⇒ ListUserRatings
-
*Required arguments*
-
user_id
-> ID of the user whose ratings are to be listed.
-
20 21 22 23 24 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 20 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.
14 15 16 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 14 def ensure_https @ensure_https end |
#timeout ⇒ Object
Returns the value of attribute timeout.
13 14 15 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 13 def timeout @timeout end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
12 13 14 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 12 def user_id @user_id end |
Instance Method Details
#body_parameters ⇒ Object
Values of body parameters as a Hash
32 33 34 35 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 32 def body_parameters p = Hash.new p end |
#method ⇒ Object
HTTP method
27 28 29 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 27 def method :get end |
#path ⇒ Object
Relative path to the endpoint
45 46 47 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 45 def path "/{databaseId}/users/#{@user_id}/ratings/" end |
#query_parameters ⇒ Object
Values of query parameters as a Hash. name of parameter => value of the parameter
39 40 41 42 |
# File 'lib/recombee_api_client/api/list_user_ratings.rb', line 39 def query_parameters params = {} params end |