Class: Railbox::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



47
48
49
50
# File 'lib/railbox.rb', line 47

def initialize
  @max_attempts   = 5
  @retry_strategy = [1.minute, 10.minutes, 1.hour, 3.hours, 1.day]
end

Instance Attribute Details

#max_attemptsObject

Returns the value of attribute max_attempts.



45
46
47
# File 'lib/railbox.rb', line 45

def max_attempts
  @max_attempts
end

#retry_strategyObject

Returns the value of attribute retry_strategy.



45
46
47
# File 'lib/railbox.rb', line 45

def retry_strategy
  @retry_strategy
end