Class: Rack::PactBroker::ApplicationContext

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/pact_broker/application_context.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, application_context) ⇒ ApplicationContext

Returns a new instance of ApplicationContext.



6
7
8
9
# File 'lib/rack/pact_broker/application_context.rb', line 6

def initialize(app, application_context)
  @app = app
  @application_context = application_context
end

Instance Method Details

#call(env) ⇒ Object



11
12
13
# File 'lib/rack/pact_broker/application_context.rb', line 11

def call(env)
  @app.call({ "pactbroker.application_context" => @application_context }.merge(env))
end