Sha256: 8154aaa87c7c09024a24fb6b433b37a4c926dcf0fefcb423a09a581b7b5a3115
Contents?: true
Size: 728 Bytes
Versions: 115
Compression:
Stored size: 728 Bytes
Contents
require_relative 'base_decorator' require_relative 'pact_pacticipant_decorator' require_relative 'timestamps' module PactBroker module Api module Decorators class LabelDecorator < BaseDecorator property :name include Timestamps link :self do | options | { title: 'Label', name: represented.name, href: label_url(represented, options[:base_url]) } 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
115 entries across 115 versions & 1 rubygems