Class: LondonCab::Client
Class Method Summary
collapse
Instance Method Summary
collapse
#ride_request
#delete, #get, #post, #put
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
9
10
11
12
13
14
15
|
# File 'lib/london_cab/client.rb', line 9
def initialize(options = {})
LondonCab::Config::ATTRIBUTES.each do |key|
send("#{key}=", options[key] || LondonCab.config.send(key))
end
@logger ||= LondonCab::Config.logger || LondonCab::Logger.default
end
|
Class Method Details
.config ⇒ Object
22
23
24
|
# File 'lib/london_cab/client.rb', line 22
def config
Config
end
|
18
19
20
|
# File 'lib/london_cab/client.rb', line 18
def configure
block_given? ? yield(Config) : Config
end
|