Sha256: efb48eb0428ed943274fbdb45b6c3aca0e0770805f6d550c7af5ddb6ddce2366
Contents?: true
Size: 372 Bytes
Versions: 3
Compression:
Stored size: 372 Bytes
Contents
module ActionThrottling class Configuration attr_accessor :bucket_key, :regenerate_amount, :regenerate_interval, :redis def initialize self.redis = Redis.new end end class << self attr_writer :configuration end def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration end end
Version data entries
3 entries across 3 versions & 1 rubygems