Module: Seoshop::Order
- Included in:
- Client
- Defined in:
- lib/seoshop-api/api/order.rb
Instance Method Summary collapse
- #get_order(order_id) ⇒ Object
- #get_order_products(order_id) ⇒ Object
- #get_orders(params = {}) ⇒ Object
- #get_orders_count ⇒ Object
Instance Method Details
#get_order(order_id) ⇒ Object
13 14 15 16 |
# File 'lib/seoshop-api/api/order.rb', line 13 def get_order(order_id) response = get("#{@shop_language}/orders/#{order_id}.json") response.body ? response.body['order'] : false end |
#get_order_products(order_id) ⇒ Object
18 19 20 21 |
# File 'lib/seoshop-api/api/order.rb', line 18 def get_order_products(order_id) response = get("#{@shop_language}/orders/#{order_id}/products.json") response.body ? response.body['orderProducts'] : false end |
#get_orders(params = {}) ⇒ Object
3 4 5 6 |
# File 'lib/seoshop-api/api/order.rb', line 3 def get_orders(params = {}) response = get("#{@shop_language}/orders.json", params) response.body ? response.body['orders'] : false end |
#get_orders_count ⇒ Object
8 9 10 11 |
# File 'lib/seoshop-api/api/order.rb', line 8 def get_orders_count response = get("#{@shop_language}/orders/count.json") response.body ? response.body['count'] : false end |