Class: Ebisu::Client
Class Method Summary
collapse
Instance Method Summary
collapse
#item_search
#category_search
#delete, #get, #post, #put
Constructor Details
#initialize(options = {}) ⇒ Client
42
43
44
45
46
47
48
|
# File 'lib/ebisu/client.rb', line 42
def initialize(options = {})
Configuration::ATTRIBUTES.each do |key|
send("#{key}=", options[key] || Configuration.send(key))
end
@logger ||= Configuration.logger || ::Logger.new(STDOUT)
@appid ||= Configuration.appid
end
|
Class Method Details
51
52
53
|
# File 'lib/ebisu/client.rb', line 51
def configure
block_given? ? yield(Configuration) : Configuration
end
|