Sha256: ca003c560d894d5db2efc796467ec97862acb1eba8e5713242cf9ce708813274

Contents?: true

Size: 591 Bytes

Versions: 3

Compression:

Stored size: 591 Bytes

Contents

require_relative 'base_decorator'
require_relative 'version_decorator'

module PactBroker
  module Api
    module Decorators

      class VerificationsDecorator < BaseDecorator

        collection :entries, as: :verifications, embedded: true, :extend => PactBroker::Api::Decorators::VerificationDecorator

        link :self do | context |
          {
            href: context.fetch(:resource_url),
            title: "Latest verifications for consumer #{context.fetch(:consumer_name)} version #{context.fetch(:consumer_version_number)}"
          }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact_broker-2.0.0.beta.3 lib/pact_broker/api/decorators/verifications_decorator.rb
pact_broker-2.0.0.beta.2 lib/pact_broker/api/decorators/verifications_decorator.rb
pact_broker-2.0.0.beta.1 lib/pact_broker/api/decorators/verifications_decorator.rb