class Raterr::Minute
Constants
- SECONDS_PER_MINUTE
Private Instance Methods
max_per_minutes()
click to toggle source
# File lib/raterr/minute.rb, line 10 def max_per_minutes options[:max] end
Also aliased as: max_per_period
rate_period()
click to toggle source
# File lib/raterr/minute.rb, line 15 def rate_period start_time + SECONDS_PER_MINUTE end
try_after()
click to toggle source
# File lib/raterr/minute.rb, line 19 def try_after "#{SECONDS_PER_MINUTE - (Time.now - start_time).ceil} seconds" end