Module: Tictail::Api::Product

Included in:
Client
Defined in:
lib/tictail/api/product.rb

Instance Method Summary collapse

Instance Method Details

#get_products(params) ⇒ Object

Raises:



4
5
6
7
8
# File 'lib/tictail/api/product.rb', line 4

def get_products params
  raise InvalidParams.new('No store id spacified') unless params[:store_id]
  response = get("/v1/stores/#{params[:store_id]}/products", params.except(:store_id))
  response.body
end