Class: RCelery::Configuration

Inherits:
ConfigToolkit::BaseConfig
  • Object
show all
Defined in:
lib/rcelery/configuration.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Configuration

Returns a new instance of Configuration.



16
17
18
# File 'lib/rcelery/configuration.rb', line 16

def initialize(options = {})
  load(ConfigToolkit::HashReader.new(options))
end

Instance Method Details

#to_hashObject



20
21
22
# File 'lib/rcelery/configuration.rb', line 20

def to_hash
  dump(ConfigToolkit::HashWriter.new)
end