Sha256: 26ce2ba412f4dd1255bee3d486e27b84145ea2808761b6b7e2e0ef09a83a394f

Contents?: true

Size: 433 Bytes

Versions: 28

Compression:

Stored size: 433 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 < 300
      end

      def response
        @response
      end

      def error
        @error
      end

      def logs
        @logs
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
pact_broker-2.22.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.21.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.20.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.19.2 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.19.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.19.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.18.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.17.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.17.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.16.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.16.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.15.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.14.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.13.1 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.13.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.12.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.11.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.10.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.9.0 lib/pact_broker/domain/webhook_execution_result.rb
pact_broker-2.9.0.beta.5 lib/pact_broker/domain/webhook_execution_result.rb