Sha256: ed2fc052de652be76539c15f1eb866cbb1b705cd7338de1d348be3522862ec9f

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 Bytes

Contents

require_relative 'base_decorator'
require_relative 'pact_pacticipant_decorator'

module PactBroker

  module Api

    module Decorators

      class PactRepresenter < 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

1 entries across 1 versions & 1 rubygems

Version Path
pact_broker-0.0.9 lib/pact_broker/api/decorators/pact_decorator.rb