Class: PactBroker::Webhooks::ExecutionConfigurationCreator
- Inherits:
-
Object
- Object
- PactBroker::Webhooks::ExecutionConfigurationCreator
- Defined in:
- lib/pact_broker/webhooks/execution_configuration_creator.rb
Class Method Summary collapse
Class Method Details
.call(resource) ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/pact_broker/webhooks/execution_configuration_creator.rb', line 7 def self.call(resource) PactBroker::Webhooks::ExecutionConfiguration.new .with_show_response(PactBroker.configuration.show_webhook_response?) .with_retry_schedule(PactBroker.configuration.webhook_retry_schedule) .with_http_success_codes(PactBroker.configuration.webhook_http_code_success) .with_user_agent(PactBroker.configuration.user_agent) .with_webhook_context(base_url: resource.base_url) end |