Sha256: b58d6e881f9c3d1eb18281cf3325950d493656dd142c89f5339d1f1a1f18b547

Contents?: true

Size: 677 Bytes

Versions: 39

Compression:

Stored size: 677 Bytes

Contents

require 'pact_broker/api/resources/badge'

module PactBroker
  module Api
    module Resources
      class MatrixBadge < Badge

        private

        def tags
          { consumer_tag: identifier_from_path[:tag], provider_tag: identifier_from_path[:provider_tag] }
        end

        def latest_verification
          return nil unless pact
          @latest_verification ||= verification_service.find_latest_verification_for_tags(
            identifier_from_path[:consumer_name],
            identifier_from_path[:provider_name],
            identifier_from_path[:tag],
            identifier_from_path[:provider_tag]
          )
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
pact_broker-2.79.1 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.79.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.78.1 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.78.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.77.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.76.2 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.76.1 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.76.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.75.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.74.1 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.74.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.73.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.72.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.71.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.70.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.69.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.68.1 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.68.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.67.0 lib/pact_broker/api/resources/matrix_badge.rb
pact_broker-2.66.0 lib/pact_broker/api/resources/matrix_badge.rb