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.52.1 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.52.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.51.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.50.1 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.50.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.49.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.48.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.47.1 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.47.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.46.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.45.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.44.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.43.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.42.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.41.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.40.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.39.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.38.1 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.38.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb
pact_broker-2.37.0 lib/pact_broker/api/decorators/triggered_webhooks_decorator.rb