class RecombeeApiClient::DeleteSearchSynonym

Deletes synonym of given `id` and this synonym is no longer taken into account in the [Search items](docs.recombee.com/api.html#search-items).

Attributes

ensure_https[RW]
id[R]
timeout[RW]

Public Class Methods

new(id) click to toggle source
  • *Required arguments*

    • id -> ID of the synonym that should be deleted.

# File lib/recombee_api_client/api/delete_search_synonym.rb, line 21
def initialize(id)
  @id = id
  @timeout = 10000
  @ensure_https = false
end

Public Instance Methods

body_parameters() click to toggle source

Values of body parameters as a Hash

# File lib/recombee_api_client/api/delete_search_synonym.rb, line 33
def body_parameters
  p = Hash.new
  p
end
method() click to toggle source

HTTP method

# File lib/recombee_api_client/api/delete_search_synonym.rb, line 28
def method
  :delete
end
path() click to toggle source

Relative path to the endpoint

# File lib/recombee_api_client/api/delete_search_synonym.rb, line 46
def path
  "/{databaseId}/synonyms/items/#{@id}"
end
query_parameters() click to toggle source

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

# File lib/recombee_api_client/api/delete_search_synonym.rb, line 40
def query_parameters
  params = {}
  params
end