Module: Infuser::Configuration
- Defined in:
- lib/infuser/configuration.rb
Constant Summary collapse
- OPTION_KEYS =
[ :api_key, :api_secret, :user_agent, :logger, :retry_count, :duplication_check ]
Class Method Summary collapse
Class Method Details
.attributes ⇒ Object
26 27 28 |
# File 'lib/infuser/configuration.rb', line 26 def attributes OPTION_KEYS.each_with_object({}) { |key, hash| hash[key] = send(key) } end |
.configure {|_self| ... } ⇒ Object
22 23 24 |
# File 'lib/infuser/configuration.rb', line 22 def configure yield self end |