Class: RecombeeApiClient::ListSegmentations
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- RecombeeApiClient::ListSegmentations
- Defined in:
- lib/recombee_api_client/api/list_segmentations.rb
Overview
Return all existing items Segmentations.
Instance Attribute Summary collapse
-
#ensure_https ⇒ Object
Returns the value of attribute ensure_https.
-
#source_type ⇒ Object
readonly
Returns the value of attribute source_type.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#body_parameters ⇒ Object
Values of body parameters as a Hash.
-
#initialize(source_type) ⇒ ListSegmentations
constructor
- Required arguments -
source_type-> List Segmentations based on a particular type of data.
- Required arguments -
-
#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_hash_to_camel_case
Constructor Details
#initialize(source_type) ⇒ ListSegmentations
-
Required arguments
source_type-> List Segmentations based on a particular type of data. Currently onlyitemsare supported.
20 21 22 23 24 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 20 def initialize(source_type) @source_type = source_type @timeout = 10_000 @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_segmentations.rb', line 14 def ensure_https @ensure_https end |
#source_type ⇒ Object (readonly)
Returns the value of attribute source_type.
13 14 15 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 13 def source_type @source_type end |
#timeout ⇒ Object
Returns the value of attribute timeout.
14 15 16 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 14 def timeout @timeout end |
Instance Method Details
#body_parameters ⇒ Object
Values of body parameters as a Hash
32 33 34 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 32 def body_parameters {} end |
#method ⇒ Object
HTTP method
27 28 29 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 27 def method :get end |
#path ⇒ Object
Relative path to the endpoint
46 47 48 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 46 def path '/{databaseId}/segmentations/list/' end |
#query_parameters ⇒ Object
Values of query parameters as a Hash. name of parameter => value of the parameter
38 39 40 41 42 43 |
# File 'lib/recombee_api_client/api/list_segmentations.rb', line 38 def query_parameters params = {} params['sourceType'] = @source_type params end |