Module: Shopkit::Client::Orders

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

Instance Method Summary collapse

Instance Method Details

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



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

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

#orders(options = {}) ⇒ Object



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

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