Sha256: 8d5212ed90c023ade60dc9ccd493baa7e2e0d477e6f22621ae835f693bcd30b1

Contents?: true

Size: 636 Bytes

Versions: 13

Compression:

Stored size: 636 Bytes

Contents

module Pact
  module Provider
    module VerificationResults
      class VerificationResult

        def initialize success, provider_application_version
          @success = success
          @provider_application_version = provider_application_version
        end

        def provider_application_version_set?
          !!provider_application_version
        end

        def to_json
          {
            success: success,
            providerApplicationVersion: provider_application_version
          }.to_json
        end

        private

        attr_reader :success, :provider_application_version
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
pact-1.19.1 lib/pact/provider/verification_results/verification_result.rb
pact-1.19.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.18.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.17.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.16.1 lib/pact/provider/verification_results/verification_result.rb
pact-1.16.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.15.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.14.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.13.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.12.1 lib/pact/provider/verification_results/verification_result.rb
pact-1.12.0 lib/pact/provider/verification_results/verification_result.rb
pact-1.11.1 lib/pact/provider/verification_results/verification_result.rb
pact-1.11.0 lib/pact/provider/verification_results/verification_result.rb