Sha256: 1aa7e960786fdbb1358b7a56b0258c47377ac931be729c1814878e994bcc3b22

Contents?: true

Size: 646 Bytes

Versions: 3

Compression:

Stored size: 646 Bytes

Contents

require_relative 'base_decorator'
require_relative 'version_decorator'

module PactBroker

  module Api

    module Decorators

      class PacticipantRepresenter < BaseDecorator

        property :name
        property :repository_url

        property :last_version, :class => PactBroker::Models::Version, :extend => PactBroker::Api::Decorators::VersionRepresenter, :embedded => true

        link :self do
          pacticipant_url(represented)
        end

        link :last_version do
          last_version_url(represented)
        end

        link :versions do
          versions_url(represented)
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pact_broker-0.0.8 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-0.0.7 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-0.0.6 lib/pact_broker/api/decorators/pacticipant_decorator.rb