Sha256: 3de59554899328329081fe01ca6d694916cab5bbe994e40ef99f468e7a0e2423

Contents?: true

Size: 1.04 KB

Versions: 15

Compression:

Stored size: 1.04 KB

Contents

require_relative 'base_decorator'

module PactBroker
  module Api
    module Decorators
      class VerificationDecorator < BaseDecorator

        property :provider_name, as: :providerName, writeable: :false
        property :provider_version_number, as: :providerApplicationVersion, writeable: false
        property :success
        property :execution_date, as: :verificationDate
        property :build_url, as: :buildUrl
        property :test_results, as: :testResults

        link :self do | options |
          {
            title: 'Verification result',
            name: "Verification result #{represented.number} for #{represented.latest_pact_publication.name}",
            href: verification_url(represented, options.fetch(:base_url), )
          }
        end

        link 'pb:pact-version' do | options |
          {
            title: 'Pact',
            name: represented.latest_pact_publication.name,
            href: pact_url(options.fetch(:base_url), represented.latest_pact_publication)
          }
        end

      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pact_broker-2.22.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.21.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.20.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.19.2 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.19.1 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.19.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.18.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.17.1 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.17.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.16.1 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.16.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.15.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.14.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.13.1 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.13.0 lib/pact_broker/api/decorators/verification_decorator.rb