Sha256: 52f510b41b7ddf509d6d1bc7854c0bcbac4cfa5aa0d709b0174428e0947f84fe

Contents?: true

Size: 1016 Bytes

Versions: 10

Compression:

Stored size: 1016 Bytes

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

        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

10 entries across 10 versions & 1 rubygems

Version Path
pact_broker-2.12.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.11.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.10.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.9.0 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.9.0.beta.5 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.8.0.beta.5 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.8.0.beta.4 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.7.0.beta.3 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.7.0.beta.2 lib/pact_broker/api/decorators/verification_decorator.rb
pact_broker-2.7.0.beta.1 lib/pact_broker/api/decorators/verification_decorator.rb