Sha256: 8a62211733a1cfc70dd33a659ed0ec8268bf6b01962b5c92ac883805a86f5ccf

Contents?: true

Size: 340 Bytes

Versions: 62

Compression:

Stored size: 340 Bytes

Contents

module ZuoraConnect
  class RequestIdMiddleware
    mattr_accessor :request_id
    mattr_accessor :zuora_request_id

    def initialize(app)
      @app = app
    end

    def call(env)
      self.request_id = env['action_dispatch.request_id']
      self.zuora_request_id = env["HTTP_ZUORA_REQUEST_ID"]
      @app.call(env)
    end
  end
end

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
zuora_connect-2.0.5zi lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5zh lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5zg lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5ze lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5zd lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5zc lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5zb lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5za lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5zz lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5z lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5y lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5x lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5w lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5v lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5u lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5t lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5s lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5r lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5q lib/middleware/request_id_middleware.rb
zuora_connect-2.0.5p lib/middleware/request_id_middleware.rb