Class: StartHer::Configuration
- Inherits:
-
Object
- Object
- StartHer::Configuration
- Defined in:
- lib/start_her/configuration.rb
Instance Attribute Summary collapse
-
#backlog_ttl ⇒ Object
Returns the value of attribute backlog_ttl.
- #logger ⇒ Object
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
6 7 8 9 |
# File 'lib/start_her/configuration.rb', line 6 def initialize @redis = {} @backlog_ttl = 60 * 60 * 24 * 7 # 1.week end |
Instance Attribute Details
#backlog_ttl ⇒ Object
Returns the value of attribute backlog_ttl.
3 4 5 |
# File 'lib/start_her/configuration.rb', line 3 def backlog_ttl @backlog_ttl end |
#logger ⇒ Object
11 12 13 |
# File 'lib/start_her/configuration.rb', line 11 def logger @logger ||= StartHer::Logger.instance end |
#redis ⇒ Object
Returns the value of attribute redis.
3 4 5 |
# File 'lib/start_her/configuration.rb', line 3 def redis @redis end |