Sha256: 89e186303c26e510b87c40ae578efdfd333c40467721188d349457673071fb00

Contents?: true

Size: 434 Bytes

Versions: 10

Compression:

Stored size: 434 Bytes

Contents

module PactBroker

  module Domain

    class WebhookExecutionResult

      def initialize response, logs, error = nil
        @response = response
        @logs = logs
        @error = error
      end

      def success?
        !@response.nil? && @response.code.to_i < 400
      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

Version Path
pact_broker-2.4.2 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.4.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.4.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.3.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.2.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.1.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.1.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.0.5 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.0.4 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.0.3 lib/pact_broker/domain/webhook_execution_result.rb