Class: Redmon::Config
- Inherits:
-
Object
- Object
- Redmon::Config
- Defined in:
- lib/redmon/config.rb
Constant Summary collapse
- DEFAULTS =
{ :namespace => 'redmon', :redis_url => 'redis://127.0.0.1:6379', :base_path => '', :app => true, :worker => true, :web_interface => ['0.0.0.0', 4567], :poll_interval => 10, :data_lifespan => 30, :secure => false }
Instance Method Summary collapse
- #apply(opts) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Method Details
#apply(opts) ⇒ Object
29 30 31 |
# File 'lib/redmon/config.rb', line 29 def apply(opts) opts.each { |k,v| send("#{k}=", v) if respond_to? k } end |