class RedisRateLimit::Hourly
Public Class Methods
new(name, options = {})
click to toggle source
Create an instance of Hourly
@param [String] name A unique namespace that identify the subject to track : users, emails, ip … @param [Hash] options Options hash @option options [Integer] :limit (3600) How many transactions to perform during the defined interval @option options [Redis] :redis (nil) Redis client @return [Hourly] Hourly
instance
Calls superclass method
# File lib/redis_rate_limit/hourly.rb, line 10 def initialize(name, options = {}) super(name, options.merge({format: '%Y-%m-%dT%H', interval: 3600})) end