Class: Rack::Congestion::IpLimiter
- Defined in:
- lib/rack/congestion/ip_limiter.rb
Instance Attribute Summary
Attributes inherited from Limiter
Instance Method Summary collapse
Methods inherited from Limiter
#_call, #backoff, #call, #initialize, #rejected_response, #request
Constructor Details
This class inherits a constructor from Rack::Congestion::Limiter
Instance Method Details
#key ⇒ Object
4 5 6 |
# File 'lib/rack/congestion/ip_limiter.rb', line 4 def key ->{ request ? request.ip : nil } end |