Module: Postmates
- Defined in:
- lib/postmates.rb,
lib/postmates/error.rb,
lib/postmates/quote.rb,
lib/postmates/utils.rb,
lib/postmates/client.rb,
lib/postmates/request.rb,
lib/postmates/version.rb,
lib/postmates/delivery.rb,
lib/postmates/response.rb,
lib/postmates/connection.rb,
lib/postmates/configuration.rb
Defined Under Namespace
Modules: Configuration, Connection, Request, Response, Utils
Classes: BadRequest, Client, Delivery, Error, Forbidden, InternalServerError, NotFound, Quote, ServiceUnavailable, Unauthorized, Version
Class Method Summary
collapse
Class Method Details
.method_missing(method, *args, &block) ⇒ Object
10
11
12
13
|
# File 'lib/postmates.rb', line 10
def method_missing(method, *args, &block)
return super unless new.respond_to?(method)
new.send(method, *args, &block)
end
|
.new ⇒ Object
6
7
8
|
# File 'lib/postmates.rb', line 6
def new
@client ||= Postmates::Client.new
end
|
.respond_to?(method, include_private = false) ⇒ Boolean
15
16
17
|
# File 'lib/postmates.rb', line 15
def respond_to?(method, include_private = false)
new.respond_to?(method, include_private) || super
end
|