class PactBroker::Webhooks::ExecutionConfigurationCreator
Public Class Methods
call(resource)
click to toggle source
# 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