Class: IFormat::Client
- Inherits:
-
Object
- Object
- IFormat::Client
- Defined in:
- lib/iformat/client.rb,
lib/iformat/client/orders.rb,
lib/iformat/client/session.rb,
lib/iformat/client/products.rb
Defined Under Namespace
Modules: Orders, Products, Session
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from Orders
#create_order, #get_order_info, #get_orders_history, #get_orders_history_quantity, #repeat_order
Methods included from Products
#get_items_history, #get_products
Methods included from Session
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
17 18 19 20 21 |
# File 'lib/iformat/client.rb', line 17 def initialize( = {}) IFormat::Configuration::VALID_OPTIONS.each do |key| send("#{key}=", .has_key?(key) ? [key] : IFormat.config[key]) end end |