Class: Booth::Cooldowns::Strategies::Exponential
- Inherits:
-
Object
- Object
- Booth::Cooldowns::Strategies::Exponential
- Includes:
- Logging, MethodObject
- Defined in:
- lib/booth/cooldowns/strategies/exponential.rb
Instance Method Summary collapse
Methods included from MethodObject
Instance Method Details
#call ⇒ Object
10 11 12 13 14 |
# File 'lib/booth/cooldowns/strategies/exponential.rb', line 10 def call return limit_not_yet_reached! if seconds_to_wait.zero? limit_reached! end |