Module: Epages::REST::Miscellaneous

Includes:
Utils
Included in:
API
Defined in:
lib/epages/rest/miscellaneous.rb

Overview

Instance Method Summary collapse

Methods included from Utils

build_shop_from, camelize_keys, camelize_words, options_to_multipart_request, options_to_patch_request, parse_attribute_as, parse_attribute_as_array_of, parse_attributes, symbolize_keys!, to_query_options, underscorize_keys

Instance Method Details

#currenciesObject



17
18
19
# File 'lib/epages/rest/miscellaneous.rb', line 17

def currencies
  perform_get_request('/currencies', {})
end

#info(options = {}) ⇒ Object



11
12
13
14
# File 'lib/epages/rest/miscellaneous.rb', line 11

def info(options = {})
  response = perform_get_request('/', options)
  underscorize_keys(response)
end

#localesObject



22
23
24
# File 'lib/epages/rest/miscellaneous.rb', line 22

def locales
  perform_get_request('/locales', {})
end

#product_suggestions_for(query, options = {}) ⇒ Object



27
28
29
30
# File 'lib/epages/rest/miscellaneous.rb', line 27

def product_suggestions_for(query, options = {})
  response = perform_get_request('/search/product-suggest', options.merge(query: query))
  parse_suggestions_to_products(response)
end

#watched_products(options = {}) ⇒ Object



33
34
35
# File 'lib/epages/rest/miscellaneous.rb', line 33

def watched_products(options = {})
  perform_get_request('/watched-products', {})
end