Module: Lazada::API::Brand

Included in:
Client
Defined in:
lib/lazada_dino/api/brand.rb

Instance Method Summary collapse

Instance Method Details

#get_brands(options = {}) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/lazada_dino/api/brand.rb', line 4

def get_brands(options = {})
  options["Offset"] = 0 unless options["Offset"]
  options["Limit"] = 100 unless options["Limit"]

  url = request_url('GetBrands', options)
  response = self.class.get(url)

  process_response_errors! response

  return response['SuccessResponse']['Body'] if response['SuccessResponse']
  response
end