Class: PactBroker::Api::Decorators::DecoratorContextCreator

Inherits:
Object
  • Object
show all
Defined in:
lib/pact_broker/api/decorators/decorator_context_creator.rb

Class Method Summary collapse

Class Method Details

.call(resource, options) ⇒ Object



7
8
9
# File 'lib/pact_broker/api/decorators/decorator_context_creator.rb', line 7

def self.call(resource, options)
  Decorators::DecoratorContext.new(resource.base_url, resource.resource_url, resource.request.env, options)
end