Class: Rack::Attack::Throttle

Inherits:
Object
  • Object
show all
Includes:
InspectWithOptions, PeriodIntrospection
Defined in:
lib/rack/attack_extensions.rb

Instance Method Summary collapse

Methods included from InspectWithOptions

#inspect_with_options

Methods included from PeriodIntrospection

#time_range

Instance Method Details

#optionsObject



221
222
223
224
225
226
# File 'lib/rack/attack_extensions.rb', line 221

def options
  {
    period: period,
    limit:  limit,
  }
end