Class: Shirtsio::Order

Inherits:
APIResource show all
Defined in:
lib/shirtsio/order.rb

Instance Attribute Summary

Attributes inherited from ShirtsioObject

#api_key

Class Method Summary collapse

Methods inherited from APIResource

class_name, #refresh, retrieve, url, #url

Methods inherited from ShirtsioObject

#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from Shirtsio::ShirtsioObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Shirtsio::ShirtsioObject

Class Method Details

.place_order(params = {}) ⇒ Object



6
7
8
9
10
# File 'lib/shirtsio/order.rb', line 6

def Order.place_order(params={})
  response, api_key = Shirtsio.request(:post, @order_url, @api_key, params)
  Util.convert_to_shirtsio_object(response, api_key)
  response
end