Sha256: c5bfa88e870624fafe3fa954324970fc526e0a640dbf474f8892a755f4def59b
Contents?: true
Size: 995 Bytes
Versions: 19
Compression:
Stored size: 995 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 :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
19 entries across 19 versions & 1 rubygems