Sha256: 1434a5fee41be9409fa2ccb0d1dc5c9811898583d735d7170af8d9a20f84c92e

Contents?: true

Size: 535 Bytes

Versions: 5

Compression:

Stored size: 535 Bytes

Contents

require_relative 'base_decorator'
require_relative 'pact_pacticipant_decorator'

module PactBroker

  module Api

    module Decorators

      class PactDecorator < BaseDecorator

        property :consumer, :extend => PactBroker::Api::Decorators::PactPacticipantRepresenter, :embedded => true
        property :provider, :extend => PactBroker::Api::Decorators::PactPacticipantRepresenter, :embedded => true

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

      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pact_broker-1.0.0 lib/pact_broker/api/decorators/pact_decorator.rb
pact_broker-1.0.0.alpha3 lib/pact_broker/api/decorators/pact_decorator.rb
pact_broker-1.0.0.alpha2 lib/pact_broker/api/decorators/pact_decorator.rb
pact_broker-1.0.0.alpha1 lib/pact_broker/api/decorators/pact_decorator.rb
pact_broker-0.0.10 lib/pact_broker/api/decorators/pact_decorator.rb