Class: LineUp::Configuration
- Inherits:
-
Object
- Object
- LineUp::Configuration
- Defined in:
- lib/line_up/configuration.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#recency_ttl ⇒ Object
Returns the value of attribute recency_ttl.
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(options = {}) ⇒ Configuration
Returns a new instance of Configuration.
7 8 9 10 11 |
# File 'lib/line_up/configuration.rb', line 7 def initialize(={}) @logger = [:logger] || default_logger @redis = [:redis] || default_redis @recency_ttl = [:recency_ttl] || default_recency_ttl end |
Instance Attribute Details
#logger ⇒ Object
Returns the value of attribute logger.
5 6 7 |
# File 'lib/line_up/configuration.rb', line 5 def logger @logger end |
#recency_ttl ⇒ Object
Returns the value of attribute recency_ttl.
5 6 7 |
# File 'lib/line_up/configuration.rb', line 5 def recency_ttl @recency_ttl end |
#redis ⇒ Object
Returns the value of attribute redis.
5 6 7 |
# File 'lib/line_up/configuration.rb', line 5 def redis @redis end |