Class: Railbox::Configuration
- Inherits:
-
Object
- Object
- Railbox::Configuration
- Defined in:
- lib/railbox.rb
Instance Attribute Summary collapse
-
#max_attempts ⇒ Object
Returns the value of attribute max_attempts.
-
#retry_strategy ⇒ Object
Returns the value of attribute retry_strategy.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_attempts ⇒ Object
Returns the value of attribute max_attempts.
45 46 47 |
# File 'lib/railbox.rb', line 45 def max_attempts @max_attempts end |
#retry_strategy ⇒ Object
Returns the value of attribute retry_strategy.
45 46 47 |
# File 'lib/railbox.rb', line 45 def retry_strategy @retry_strategy end |