Parent

Methods

Rack::Attack::Track

Attributes

filter[R]

Public Class Methods

new(name, options = {}, block) click to toggle source
# File lib/rack/attack/track.rb, line 8
def initialize(name, options = {}, block)
  options[:type] = :track

  if options[:limit] && options[:period]
    @filter = Throttle.new(name, options, block)
  else
    @filter = Check.new(name, options, block)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.