Sha256: 4e24294c89414b9fa556919e930e489c32aaa6330f34cac00109d9cc09adbcf1

Contents?: true

Size: 929 Bytes

Versions: 24

Compression:

Stored size: 929 Bytes

Contents

require_relative 'base_decorator'
require_relative 'embedded_version_decorator'
require 'pact_broker/api/decorators/timestamps'
require 'pact_broker/domain'

module PactBroker

  module Api

    module Decorators

      class PacticipantDecorator < BaseDecorator

        property :name
        property :repository_url, as: :repositoryUrl

        property :latest_version, as: :'latest-version', :class => PactBroker::Domain::Version, :extend => PactBroker::Api::Decorators::EmbeddedVersionDecorator, :embedded => true, writeable: false

        include Timestamps

        link :self do | options |
          pacticipant_url(options[:base_url], represented)
        end

        link 'latest-version' do | options |
          latest_version_url(options[:base_url], represented)
        end

        link :versions do | options |
          versions_url(options[:base_url], represented)
        end

      end
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
pact_broker-2.3.0 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.2.0 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.1.1 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.1.0 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.5 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.4 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.3 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.2 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.1 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0.beta.8 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0.beta.7 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0.beta.6 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-1.18.0 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0.beta.5 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-1.18.0.beta.1 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-1.17.2 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-1.17.1 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0.beta.4 lib/pact_broker/api/decorators/pacticipant_decorator.rb
pact_broker-2.0.0.beta.3 lib/pact_broker/api/decorators/pacticipant_decorator.rb