Class: Colossus::Configuration
- Inherits:
-
Object
- Object
- Colossus::Configuration
- Defined in:
- lib/colossus/configuration.rb
Overview
Handles all the configuration
Instance Attribute Summary collapse
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#seconds_before_ttl_check ⇒ Object
Returns the value of attribute seconds_before_ttl_check.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
-
#writer_token ⇒ Object
Returns the value of attribute writer_token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/colossus/configuration.rb', line 9 def initialize @ttl = 10 @seconds_before_ttl_check = 2 @engine = Colossus::Engine::MemoryThreadSafe @secret_key = '' @writer_token = '' end |
Instance Attribute Details
#engine ⇒ Object
Returns the value of attribute engine.
6 7 8 |
# File 'lib/colossus/configuration.rb', line 6 def engine @engine end |
#seconds_before_ttl_check ⇒ Object
Returns the value of attribute seconds_before_ttl_check.
6 7 8 |
# File 'lib/colossus/configuration.rb', line 6 def seconds_before_ttl_check @seconds_before_ttl_check end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
6 7 8 |
# File 'lib/colossus/configuration.rb', line 6 def secret_key @secret_key end |
#ttl ⇒ Object
Returns the value of attribute ttl.
6 7 8 |
# File 'lib/colossus/configuration.rb', line 6 def ttl @ttl end |
#writer_token ⇒ Object
Returns the value of attribute writer_token.
6 7 8 |
# File 'lib/colossus/configuration.rb', line 6 def writer_token @writer_token end |