Sha256: b2faa9b4c5ff50a680db4b70bc24d52e6e8f5f4fcba742696bf57dbc13c8395f
Contents?: true
Size: 745 Bytes
Versions: 4
Compression:
Stored size: 745 Bytes
Contents
require 'roar/representer/json/hal' require_relative 'pact_broker_urls' require_relative 'version_representor' module PactBroker module Api module Representors module PacticipantCollectionRepresenter include Roar::Representer::JSON::HAL include PactBroker::Api::PactBrokerUrls collection :pacticipants, :class => PactBroker::Models::Pacticipant, :extend => PactBroker::Api::Representors::PacticipantRepresenter def pacticipants self end link :self do pacticipants_url end links :pacticipants do collect{ | pacticipant | {:href => pacticipant_url(pacticipant), :name => pacticipant.name } } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems