Sha256: 0f28d4c24a4241abf20fe7519cd71b2211b0b4c1d7e161417f112f7064ea9809

Contents?: true

Size: 558 Bytes

Versions: 84

Compression:

Stored size: 558 Bytes

Contents

require 'pact_broker/api/decorators/base_decorator'
require 'pact_broker/api/decorators/triggered_webhook_decorator'

module PactBroker
  module Api
    module Decorators
      class TriggeredWebhooksDecorator < BaseDecorator
        collection :entries, as: :triggeredWebhooks, embedded: true, :extend => PactBroker::Api::Decorators::TriggeredWebhookDecorator

        link :self do | options |
          {
            title: options.fetch(:resource_title),
            href: options.fetch(:resource_url)
          }
        end
      end
    end
  end
end

Version data entries

84 entries across 84 versions & 1 rubygems

Version Path
pact_broker-2.36.1 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.36.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.35.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.34.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.33.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.32.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.31.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.30.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.29.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.27.6 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.27.5 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.27.4 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.27.3 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.27.2 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.27.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.26.1 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.26.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.25.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.24.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.23.4 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb