Class: RaceBlock::Configuration
- Inherits:
-
Object
- Object
- RaceBlock::Configuration
- Defined in:
- lib/race_block.rb
Overview
For managing RaceBlock current configuration settings
Instance Attribute Summary collapse
-
#expiration_delay ⇒ Object
Returns the value of attribute expiration_delay.
-
#expire ⇒ Object
Returns the value of attribute expire.
-
#redis ⇒ Object
Returns the value of attribute redis.
-
#sleep_delay ⇒ Object
Returns the value of attribute sleep_delay.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #reset ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 |
# File 'lib/race_block.rb', line 16 def initialize reset end |
Instance Attribute Details
#expiration_delay ⇒ Object
Returns the value of attribute expiration_delay.
14 15 16 |
# File 'lib/race_block.rb', line 14 def expiration_delay @expiration_delay end |
#expire ⇒ Object
Returns the value of attribute expire.
14 15 16 |
# File 'lib/race_block.rb', line 14 def expire @expire end |
#redis ⇒ Object
Returns the value of attribute redis.
14 15 16 |
# File 'lib/race_block.rb', line 14 def redis @redis end |
#sleep_delay ⇒ Object
Returns the value of attribute sleep_delay.
14 15 16 |
# File 'lib/race_block.rb', line 14 def sleep_delay @sleep_delay end |
Instance Method Details
#reset ⇒ Object
20 21 22 23 24 |
# File 'lib/race_block.rb', line 20 def reset @expire = 60 @expiration_delay = 3 @sleep_delay = 0.5 end |