Class: Rack::Congestion::IpLimiter

Inherits:
Limiter
  • Object
show all
Defined in:
lib/rack/congestion/ip_limiter.rb

Instance Attribute Summary

Attributes inherited from Limiter

#app, #env, #options

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

#keyObject



4
5
6
# File 'lib/rack/congestion/ip_limiter.rb', line 4

def key
  ->{ request ? request.ip : nil }
end