Sha256: 8e3aa237f6eeb49bce7cae41e00131e3b5ca7eab22d70d764fb4ea3f0f849191
Contents?: true
Size: 599 Bytes
Versions: 2
Compression:
Stored size: 599 Bytes
Contents
require_relative "base_decorator" require_relative "pagination_links" require_relative "label_decorator" require "pact_broker/domain/label" module PactBroker module Api module Decorators class LabelsDecorator < BaseDecorator collection :entries, :as => :labels, :class => PactBroker::Domain::Label, :extend => PactBroker::Api::Decorators::LabelDecorator, embedded: true include PaginationLinks link :self do | options | { title: "Labels", href: options.fetch(:resource_url) } end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pact_broker-2.112.0 | lib/pact_broker/api/decorators/labels_decorator.rb |
pact_broker-2.111.0 | lib/pact_broker/api/decorators/labels_decorator.rb |