Class: Booth::Core::Cooldowns::Strategies::Global
- Inherits:
-
Object
- Object
- Booth::Core::Cooldowns::Strategies::Global
- Includes:
- Logging, Calls
- Defined in:
- lib/booth/core/cooldowns/strategies/global.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/booth/core/cooldowns/strategies/global.rb', line 14 def call if number_of_incidents >= max_attempts limit_reached! else limit_not_yet_reached! end end |