Sha256: ddbafd0112a9317c9a942a7074e005b98bff5a4adb6e63b7c25de13f42dbe712
Contents?: true
Size: 701 Bytes
Versions: 42
Compression:
Stored size: 701 Bytes
Contents
require 'roar/json/hal' require 'pact_broker/api/pact_broker_urls' require_relative 'embedded_version_decorator' module PactBroker module Api module Decorators class PacticipantCollectionDecorator < BaseDecorator collection :entries, :as => :pacticipants, :class => PactBroker::Domain::Pacticipant, :extend => PactBroker::Api::Decorators::PacticipantDecorator link :self do | options | pacticipants_url options[:base_url] end links :pacticipants do | options | represented.collect{ | pacticipant | {:href => pacticipant_url(options[:base_url], pacticipant), :title => pacticipant.name } } end end end end end
Version data entries
42 entries across 42 versions & 1 rubygems