Class: Doshii::Client

Inherits:
Object
  • Object
show all
Includes:
Checkin, Location, Order, Product, Table, Connection
Defined in:
lib/doshii/client.rb,
lib/doshii/client/order.rb,
lib/doshii/client/table.rb,
lib/doshii/client/checkin.rb,
lib/doshii/client/product.rb,
lib/doshii/client/location.rb

Defined Under Namespace

Modules: Checkin, Location, Order, Product, Table

Constant Summary

Constants included from Table

Table::API_URL

Constants included from Product

Product::API_URL

Constants included from Order

Order::API_URL

Constants included from Location

Location::API_URL

Constants included from Checkin

Checkin::API_URL

Instance Method Summary collapse

Methods included from Table

#get_table

Methods included from Product

#list_products

Methods included from Order

#create_order, #get_order, #update_order

Methods included from Location

#create_location, #list_locations

Methods included from Checkin

#allocate_table, #create_checkin, #delete_checkin, #get_checkin, #update_checkin

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



55
56
57
58
59
60
# File 'lib/doshii/client.rb', line 55

def initialize(options={})
  merged_options = Doshii.options.merge(options)
  Configuration::VALID_CONFIG_KEYS.each do |key|
    send("#{key}=", merged_options[key])
  end
end