Class: SageWorld::Api::ProductThemeList

Inherits:
Base
  • Object
show all
Defined in:
lib/sage_world/api/product_theme_list.rb

Class Method Summary collapse

Class Method Details

.get(params = {}) ⇒ Object

response.body => returns the response in hash format.



12
13
14
15
16
17
18
19
20
# File 'lib/sage_world/api/product_theme_list.rb', line 12

def self.get(params = {})
  if @existing_params == params
    @response
  else
    @existing_params = params
    response = SageWorld::Client.new(list_builder(params)).send_request
    @response = SageWorld::ResponseHandler.new(response)
  end
end