Class: RequestStore::Sneakers::Middleware

Inherits:
Object
  • Object
show all
Defined in:
lib/request_store/sneakers/middleware.rb

Overview

:nodoc:

Instance Method Summary collapse

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