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

.attributesObject



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

Yields:

  • (_self)

Yield Parameters:



22
23
24
# File 'lib/infuser/configuration.rb', line 22

def configure
  yield self
end