Sha256: 7c60b256a2e88e7b728a1e2dcc0a3fdf84e6f761a34cbe9b0f25d93abcf573b1
Contents?: true
Size: 779 Bytes
Versions: 10
Compression:
Stored size: 779 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 def initialize request, response, logs, error = nil @request = PactBroker::Webhooks::HttpRequestWithRedactedHeaders.new(request) @response = response ? PactBroker::Webhooks::HttpResponseWithUtf8SafeBody.new(response) : nil @logs = logs @error = error end def success? !@response.nil? && @response.code.to_i < 300 end def request @request end def response @response end def error @error end def logs @logs end end end end
Version data entries
10 entries across 10 versions & 1 rubygems