Class: Lifesaver::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/lifesaver/config.rb

Overview

A container for configuration parameters

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @notification_queue = :lifesaver_notification
  @indexing_queue = :lifesaver_indexing

  options.each do |key, value|
    public_send("#{key}=", value)
  end
end

Instance Attribute Details

#indexing_queueObject

Returns the value of attribute indexing_queue.



4
5
6
# File 'lib/lifesaver/config.rb', line 4

def indexing_queue
  @indexing_queue
end

#notification_queueObject

Returns the value of attribute notification_queue.



4
5
6
# File 'lib/lifesaver/config.rb', line 4

def notification_queue
  @notification_queue
end