Class: Postmates::Client

Inherits:
Object
  • Object
show all
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

Methods included from DeliveryQuote

#delivery_quote_request

Methods included from Delivery

#delivery_cancel, #delivery_create, #delivery_list, #delivery_poll, #delivery_return

Methods included from Request

#delete, #get, #post, #put

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(options={})
  options = Postmates.options.merge(options)
  Configuration::VALID_OPTIONS_KEYS.each do |key|
    send("#{key}=", options[key])
  end
end