Sha256: 64da4e736b314693e42f23e785132a6b8f60321175b36d217932231e3fa71306
Contents?: true
Size: 764 Bytes
Versions: 28
Compression:
Stored size: 764 Bytes
Contents
require_relative 'base_decorator' require_relative 'pact_pacticipant_decorator' require 'pact_broker/api/decorators/timestamps' module PactBroker module Api module Decorators class EmbeddedVersionDecorator < BaseDecorator property :number link :self do | options | version_url(options[:base_url], represented) end end class PactVersionDecorator < BaseDecorator include Timestamps property :consumer_version, as: :consumerVersion, embedded: true, decorator: EmbeddedVersionDecorator link :self do | options | { href: pact_url(options[:base_url], represented), title: represented.name } end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems