Class: RequestStore::Sneakers::Middleware
- Inherits:
-
Object
- Object
- RequestStore::Sneakers::Middleware
- Defined in:
- lib/request_store/sneakers/middleware.rb
Overview
:nodoc:
Instance Method Summary collapse
- #call(deserialized_msg, delivery_info, metadata, handler) ⇒ Object
-
#initialize(app, *args) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, *args) ⇒ Middleware
Returns a new instance of Middleware.
7 8 9 10 |
# File 'lib/request_store/sneakers/middleware.rb', line 7 def initialize(app, *args) @app = app @args = args end |
Instance Method Details
#call(deserialized_msg, delivery_info, metadata, handler) ⇒ Object
12 13 14 15 16 |
# File 'lib/request_store/sneakers/middleware.rb', line 12 def call(deserialized_msg, delivery_info, , handler) @app.call(deserialized_msg, delivery_info, , handler) ensure ::RequestStore.clear! end |