Class: Booth::Core::Cooldowns::Strategies::Exponential
- Inherits:
-
Object
- Object
- Booth::Core::Cooldowns::Strategies::Exponential
- Includes:
- Logging, Calls
- Defined in:
- lib/booth/core/cooldowns/strategies/exponential.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 |
# File 'lib/booth/core/cooldowns/strategies/exponential.rb', line 13 def call return limit_not_yet_reached! if seconds_to_wait.zero? limit_reached! end |