Class: Lifesaver::Config
- Inherits:
-
Object
- Object
- Lifesaver::Config
- Defined in:
- lib/lifesaver/config.rb
Overview
A container for configuration parameters
Instance Attribute Summary collapse
-
#indexing_queue ⇒ Object
Returns the value of attribute indexing_queue.
-
#notification_queue ⇒ Object
Returns the value of attribute notification_queue.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize(options = {}) ⇒ Config
Returns a new instance of Config.
6 7 8 9 10 11 12 13 |
# File 'lib/lifesaver/config.rb', line 6 def initialize( = {}) @notification_queue = :lifesaver_notification @indexing_queue = :lifesaver_indexing .each do |key, value| public_send("#{key}=", value) end end |
Instance Attribute Details
#indexing_queue ⇒ Object
Returns the value of attribute indexing_queue.
4 5 6 |
# File 'lib/lifesaver/config.rb', line 4 def indexing_queue @indexing_queue end |
#notification_queue ⇒ Object
Returns the value of attribute notification_queue.
4 5 6 |
# File 'lib/lifesaver/config.rb', line 4 def notification_queue @notification_queue end |