Class: Postmates::Client
- Inherits:
-
Object
- Object
- Postmates::Client
- Includes:
- Delivery, DeliveryQuote, Connection, Request
- Defined in:
- lib/Postmates/client.rb,
lib/Postmates/client/delivery.rb,
lib/Postmates/client/delivery_quote.rb
Defined Under Namespace
Modules: Delivery, DeliveryQuote
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
Methods included from DeliveryQuote
Methods included from Delivery
#delivery_cancel, #delivery_create, #delivery_list, #delivery_poll, #delivery_return
Methods included from Request
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/Postmates/client.rb', line 10 def initialize(={}) = Postmates..merge() Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", [key]) end end |