Sha256: 36c9ff24ce4d2ef46f58564ec24f797f107020995ee802d6d11b1149836a5471

Contents?: true

Size: 515 Bytes

Versions: 19

Compression:

Stored size: 515 Bytes

Contents

module PactBroker

  module Domain

    class WebhookExecutionResult

      def initialize request, response, logs, error = nil
        @request = request
        @response = response
        @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

19 entries across 19 versions & 1 rubygems

Version Path
pact_broker-2.32.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.31.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.30.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.29.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.27.6 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.27.5 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.27.4 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.27.3 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.27.2 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.27.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.26.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.26.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.25.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.24.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.23.4 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.23.3 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.23.2 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.23.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.23.0 lib/pact_broker/domain/webhook_execution_result.rb