Sha256: 7f39c36980c27241071eb4e1fa9f8b991a47b65811936af125079e2ceab6ea33

Contents?: true

Size: 657 Bytes

Versions: 43

Compression:

Stored size: 657 Bytes

Contents

require "pact_broker/webhooks/http_request_with_redacted_headers"
require "pact_broker/webhooks/http_response_with_utf_8_safe_body"

module PactBroker
  module Webhooks
    class WebhookExecutionResult
      attr_reader :request, :response, :logs, :error

      def initialize(request, response, success, logs, error = nil)
        @request = PactBroker::Webhooks::HttpRequestWithRedactedHeaders.new(request)
        @response = response ? PactBroker::Webhooks::HttpResponseWithUtf8SafeBody.new(response) : nil
        @success = success
        @logs = logs
        @error = error
      end

      def success?
        @success
      end
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
pact_broker-2.114.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.113.2 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.113.1 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.113.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.112.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.111.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.109.1 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.109.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.108.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.107.1 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.107.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.106.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.105.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.104.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.103.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.102.2 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.102.1 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.102.0 lib/pact_broker/webhooks/webhook_execution_result.rb
pact_broker-2.101.0 lib/pact_broker/webhooks/webhook_execution_result.rb