Module: Ruberto
- Extended by:
- Forwardable
- Defined in:
- lib/ruberto.rb,
lib/ruberto/error.rb,
lib/ruberto/object.rb,
lib/ruberto/request.rb,
lib/ruberto/version.rb,
lib/ruberto/collection.rb,
lib/ruberto/authenticator.rb,
lib/ruberto/configuration.rb,
lib/ruberto/objects/delivery.rb,
lib/ruberto/configuration/file_cache.rb,
lib/generators/ruberto/init_generator.rb,
lib/ruberto/objects/proof_of_delivery.rb,
lib/ruberto/configuration/memory_cache.rb,
lib/ruberto/resources/delivery_resource.rb
Overview
a Ruby wrapper for Uber API
Defined Under Namespace
Modules: Generators
Classes: Authenticator, Collection, Configuration, Delivery, DeliveryResource, Error, FileCache, Object, ProofOfDelivery, Request
Constant Summary
collapse
- DEFAULT_API_BASE =
"https://api.uber.com/v1"
- VERSION =
"0.1.3"
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
24
25
26
|
# File 'lib/ruberto/configuration.rb', line 24
def configuration
@configuration ||= Configuration.new
end
|
.configuration=(config) ⇒ Object
28
29
30
31
32
33
34
35
36
37
38
|
# File 'lib/ruberto/configuration.rb', line 28
def configuration=(config)
if config.is_a?(Hash)
config.each do |key, value|
configuration.send "#{key}=", value
end
else
@configuration = config
end
configuration
end
|
40
41
42
|
# File 'lib/ruberto/configuration.rb', line 40
def configure
yield configuration
end
|