Class: WorkerKiller::Middleware::RequestsLimiter
- Inherits:
-
WorkerKiller::Middleware
- Object
- WorkerKiller::Middleware
- WorkerKiller::Middleware::RequestsLimiter
- Defined in:
- lib/worker_killer/middleware.rb
Instance Attribute Summary
Attributes inherited from WorkerKiller::Middleware
Instance Method Summary collapse
-
#initialize(app, **opts) ⇒ RequestsLimiter
constructor
A new instance of RequestsLimiter.
Methods inherited from WorkerKiller::Middleware
Constructor Details
#initialize(app, **opts) ⇒ RequestsLimiter
Returns a new instance of RequestsLimiter.
28 29 30 |
# File 'lib/worker_killer/middleware.rb', line 28 def initialize(app, **opts) super(app, klass: ::WorkerKiller::CountLimiter, **opts) end |