Class: Booth::Cooldowns::Strategies::Exponential

Inherits:
Object
  • Object
show all
Includes:
Logging, MethodObject
Defined in:
lib/booth/cooldowns/strategies/exponential.rb

Instance Method Summary collapse

Methods included from MethodObject

included

Instance Method Details

#callObject



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