Class: RecombeeApiClient::DeleteAllSearchSynonyms

Inherits:
ApiRequest
  • Object
show all
Defined in:
lib/recombee_api_client/api/delete_all_search_synonyms.rb

Overview

Deletes all synonyms defined in the database.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HashNormalizer

#camelize, #normalize_hash_to_camel_case

Constructor Details

#initializeDeleteAllSearchSynonyms

Returns a new instance of DeleteAllSearchSynonyms.



17
18
19
20
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 17

def initialize
  @timeout = 10_000
  @ensure_https = false
end

Instance Attribute Details

#ensure_httpsObject

Returns the value of attribute ensure_https.



13
14
15
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 13

def ensure_https
  @ensure_https
end

#timeoutObject

Returns the value of attribute timeout.



13
14
15
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 13

def timeout
  @timeout
end

Instance Method Details

#body_parametersObject

Values of body parameters as a Hash



28
29
30
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 28

def body_parameters
  {}
end

#methodObject

HTTP method



23
24
25
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 23

def method
  :delete
end

#pathObject

Relative path to the endpoint



39
40
41
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 39

def path
  '/{databaseId}/synonyms/items/'
end

#query_parametersObject

Values of query parameters as a Hash. name of parameter => value of the parameter



34
35
36
# File 'lib/recombee_api_client/api/delete_all_search_synonyms.rb', line 34

def query_parameters
  {}
end