Sha256: 1a8e650158e61bfa23142efd958a7ef43283c6f5bc6bb084a0accfcc9b14defe
Contents?: true
Size: 787 Bytes
Versions: 6
Compression:
Stored size: 787 Bytes
Contents
require_relative 'base_decorator' require_relative 'embedded_tag_decorator' module PactBroker module Api module Decorators class VersionDecorator < BaseDecorator property :number collection :tags, embedded: true, :extend => PactBroker::Api::Decorators::EmbeddedTagDecorator link :self do | options | { title: 'Version', name: represented.number, href: version_url(options.fetch(:base_url), represented) } end link :pacticipant do | options | { title: 'Pacticipant', name: represented.pacticipant.name, href: pacticipant_url(options.fetch(:base_url), represented.pacticipant) } end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems