Class: Bogo::Retry::Flat
- Inherits:
-
Bogo::Retry
- Object
- Bogo::Retry
- Bogo::Retry::Flat
- Defined in:
- lib/bogo/retry.rb
Overview
Flat retry implementation
Instance Attribute Summary collapse
- #wait_interval ⇒ Numeric readonly
Attributes inherited from Bogo::Retry
#action, #attempts, #dead, #description, #max_attempts, #ui
Instance Method Summary collapse
-
#initialize(args = {}, &block) ⇒ self
constructor
Create a new flat retry instance.
Methods inherited from Bogo::Retry
Constructor Details
#initialize(args = {}, &block) ⇒ self
Create a new flat retry instance
122 123 124 125 126 127 128 |
# File 'lib/bogo/retry.rb', line 122 def initialize(args={}, &block) @wait_interval = args[:wait_interval].to_f unless(@wait_interval > 0) @wait_interval = 5 end super end |
Instance Attribute Details
#wait_interval ⇒ Numeric (readonly)
115 116 117 |
# File 'lib/bogo/retry.rb', line 115 def wait_interval @wait_interval end |