Sha256: 4d7ab32552a33a5c3ae6122a8ad082840cf42b3733b61363670c5a3c91cbdbd1

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

require 'roar/representer/json/hal'
require_relative 'pact_broker_urls'
require_relative 'pact_pacticipant_representor'

module PactBroker

  module Api

    module Representors

      module PactRepresenter
        include Roar::Representer::JSON::HAL
        include Roar::Representer::JSON::HAL::Links
        include PactBroker::Api::PactBrokerUrls


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

        link :self do
          pact_url(self)
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pact_broker-0.0.5 lib/pact_broker/api/representors/pact_representor.rb