Class: CatchBox::Middleware
- Inherits:
-
Object
- Object
- CatchBox::Middleware
- Defined in:
- lib/catch_box/middleware.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, fanout:, endpoint:) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, fanout:, endpoint:) ⇒ Middleware
Returns a new instance of Middleware.
8 9 10 11 12 |
# File 'lib/catch_box/middleware.rb', line 8 def initialize(app, fanout:, endpoint:) @app = app @fanout = fanout @endpoint = endpoint end |
Instance Method Details
#call(env) ⇒ Object
14 15 16 |
# File 'lib/catch_box/middleware.rb', line 14 def call(env) dup.call!(env) end |