Module: Shopkit::Client::Products

Included in:
Shopkit::Client
Defined in:
lib/shopkit/client/products.rb

Instance Method Summary collapse

Instance Method Details

#product(id, options = {}) ⇒ Object



11
12
13
# File 'lib/shopkit/client/products.rb', line 11

def product(id, options={})
  get("/products/#{id}", options)['product']
end

#products(options = {}) ⇒ Object



5
6
7
8
9
# File 'lib/shopkit/client/products.rb', line 5

def products(options={})
  traversal(options) do
    get('/products', options)['products']
  end
end