Class: R4r::InfiniteRetryBudget
- Inherits:
-
RetryBudget
- Object
- RetryBudget
- R4r::InfiniteRetryBudget
- Defined in:
- lib/r4r/retry_budget.rb
Overview
A RetryBudget that always has a balance of ‘100`, and as such, will always allow a retry.
Instance Method Summary collapse
Methods inherited from RetryBudget
Instance Method Details
#balance ⇒ Object
106 |
# File 'lib/r4r/retry_budget.rb', line 106 def balance ; 100 end |
#deposit ⇒ Object
104 |
# File 'lib/r4r/retry_budget.rb', line 104 def deposit ; end |
#try_withdraw ⇒ Object
105 |
# File 'lib/r4r/retry_budget.rb', line 105 def try_withdraw ; true end |