Class: RecombeeApiClient::ResetDatabase
- Inherits:
-
ApiRequest
- Object
- ApiRequest
- RecombeeApiClient::ResetDatabase
- Defined in:
- lib/recombee_api_client/api/reset_database.rb
Overview
Completely erases all your data, including items, item properties, series, user database, purchases, ratings, detail views, and bookmarks. Make sure the request is never executed in the production environment! Resetting your database is irreversible.
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 ⇒ ResetDatabase
constructor
A new instance of ResetDatabase.
-
#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 ⇒ ResetDatabase
Returns a new instance of ResetDatabase.
17 18 19 20 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 17 def initialize @timeout = 100_000 @ensure_https = false end |
Instance Attribute Details
#ensure_https ⇒ Object
Returns the value of attribute ensure_https.
13 14 15 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 13 def ensure_https @ensure_https end |
#timeout ⇒ Object
Returns the value of attribute timeout.
13 14 15 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 13 def timeout @timeout end |
Instance Method Details
#body_parameters ⇒ Object
Values of body parameters as a Hash
28 29 30 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 28 def body_parameters {} end |
#method ⇒ Object
HTTP method
23 24 25 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 23 def method :delete end |
#path ⇒ Object
Relative path to the endpoint
39 40 41 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 39 def path '/{databaseId}/' end |
#query_parameters ⇒ Object
Values of query parameters as a Hash. name of parameter => value of the parameter
34 35 36 |
# File 'lib/recombee_api_client/api/reset_database.rb', line 34 def query_parameters {} end |