Class: RecombeeApiClient::DeleteUserProperty
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- RecombeeApiClient::DeleteUserProperty
- Defined in:
- lib/recombee_api_client/api/delete_user_property.rb
Overview
Deleting a user property is roughly equivalent to removing a column from the table of users.
Instance Attribute Summary collapse
-
#ensure_https ⇒ Object
Returns the value of attribute ensure_https.
-
#property_name ⇒ Object
readonly
Returns the value of attribute property_name.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
Instance Method Summary collapse
-
#body_parameters ⇒ Object
Values of body parameters as a Hash.
-
#initialize(property_name) ⇒ DeleteUserProperty
constructor
-
*Required arguments* -
property_name-> Name of the property to be deleted.
-
-
#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(property_name) ⇒ DeleteUserProperty
-
*Required arguments*
-
property_name-> Name of the property to be deleted.
-
20 21 22 23 24 |
# File 'lib/recombee_api_client/api/delete_user_property.rb', line 20 def initialize(property_name) @property_name = property_name @timeout = 100_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/delete_user_property.rb', line 14 def ensure_https @ensure_https end |
#property_name ⇒ Object (readonly)
Returns the value of attribute property_name.
13 14 15 |
# File 'lib/recombee_api_client/api/delete_user_property.rb', line 13 def property_name @property_name end |
#timeout ⇒ Object
Returns the value of attribute timeout.
14 15 16 |
# File 'lib/recombee_api_client/api/delete_user_property.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/delete_user_property.rb', line 32 def body_parameters {} end |
#method ⇒ Object
HTTP method
27 28 29 |
# File 'lib/recombee_api_client/api/delete_user_property.rb', line 27 def method :delete end |
#path ⇒ Object
Relative path to the endpoint
43 44 45 |
# File 'lib/recombee_api_client/api/delete_user_property.rb', line 43 def path "/{databaseId}/users/properties/#{@property_name}" end |
#query_parameters ⇒ Object
Values of query parameters as a Hash. name of parameter => value of the parameter
38 39 40 |
# File 'lib/recombee_api_client/api/delete_user_property.rb', line 38 def query_parameters {} end |