Class: RaceBlock::Configuration

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

Overview

For managing RaceBlock current configuration settings

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



16
17
18
# File 'lib/race_block.rb', line 16

def initialize
  reset
end

Instance Attribute Details

#expiration_delayObject

Returns the value of attribute expiration_delay.



14
15
16
# File 'lib/race_block.rb', line 14

def expiration_delay
  @expiration_delay
end

#expireObject

Returns the value of attribute expire.



14
15
16
# File 'lib/race_block.rb', line 14

def expire
  @expire
end

#redisObject

Returns the value of attribute redis.



14
15
16
# File 'lib/race_block.rb', line 14

def redis
  @redis
end

#sleep_delayObject

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

#resetObject



20
21
22
23
24
# File 'lib/race_block.rb', line 20

def reset
  @expire = 60
  @expiration_delay = 3
  @sleep_delay = 0.5
end