module SimpleThrottle

Constants

DAYS_SECONDS
HOUR_SECONDS
VERSION

Public Class Methods

hourly_manual(count) click to toggle source
# File lib/simple_throttle.rb, line 18
def self.hourly_manual(count)
  Manual::Runner.new(HOUR_SECONDS, count.to_i)
end
per_day(count) click to toggle source
# File lib/simple_throttle.rb, line 14
def self.per_day(count)
  TimeWindow::Runner.new(DAYS_SECONDS, count.to_i)
end
per_hour(count) click to toggle source
# File lib/simple_throttle.rb, line 10
def self.per_hour(count)
  TimeWindow::Runner.new(HOUR_SECONDS, count.to_i)
end