module Lazada::API::Category

Public Instance Methods

get_categories() click to toggle source
# File lib/lazada_dino/api/category.rb, line 4
def get_categories
  url = request_url('GetCategoryTree')
  response = self.class.get(url)

  return response['SuccessResponse']['Body'] if response['SuccessResponse']
  response
end
get_category_attributes(primary_category_id) click to toggle source
# File lib/lazada_dino/api/category.rb, line 12
def get_category_attributes(primary_category_id)
  url = request_url('GetCategoryAttributes', 'PrimaryCategory' => primary_category_id)
  response = self.class.get(url)

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