Class: RecombeeApiClient::ListScenarios
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- RecombeeApiClient::ListScenarios
- Defined in:
- lib/recombee_api_client/api/list_scenarios.rb
Overview
Get all [Scenarios](docs.recombee.com/scenarios) of the given database.
Instance Attribute Summary collapse
-
#ensure_https ⇒ Object
Returns the value of attribute ensure_https.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#body_parameters ⇒ Object
Values of body parameters as a Hash.
-
#initialize ⇒ ListScenarios
constructor
A new instance of ListScenarios.
-
#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 ⇒ ListScenarios
Returns a new instance of ListScenarios.
19 20 21 22 |
# File 'lib/recombee_api_client/api/list_scenarios.rb', line 19 def initialize() @timeout = 10000 @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_scenarios.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_scenarios.rb', line 14 def timeout @timeout end |
Instance Method Details
#body_parameters ⇒ Object
Values of body parameters as a Hash
30 31 32 33 |
# File 'lib/recombee_api_client/api/list_scenarios.rb', line 30 def body_parameters p = Hash.new p end |
#method ⇒ Object
HTTP method
25 26 27 |
# File 'lib/recombee_api_client/api/list_scenarios.rb', line 25 def method :get end |
#path ⇒ Object
Relative path to the endpoint
43 44 45 |
# File 'lib/recombee_api_client/api/list_scenarios.rb', line 43 def path "/{databaseId}/scenarios/" end |
#query_parameters ⇒ Object
Values of query parameters as a Hash. name of parameter => value of the parameter
37 38 39 40 |
# File 'lib/recombee_api_client/api/list_scenarios.rb', line 37 def query_parameters params = {} params end |