Class: IFormat::Client

Inherits:
Object
  • Object
show all
Includes:
Orders, Products, Session
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

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

#get_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(options = {})
  IFormat::Configuration::VALID_OPTIONS.each do |key|
    send("#{key}=", options.has_key?(key) ? options[key] : IFormat.config[key])
  end
end