Sha256: 9e4784255db9d8d033e9932598f7d21bbf8be74643dcf0e0d7383eda35f7a407

Contents?: true

Size: 954 Bytes

Versions: 34

Compression:

Stored size: 954 Bytes

Contents

require_relative 'base_decorator'

module PactBroker
  module Api
    module Decorators
      class TriggeredWebhookDecorator < BaseDecorator
        property :request_description, as: :name
        property :status
        property :number_of_attempts_made, as: :attemptsMade
        property :number_of_attempts_remaining, as: :attemptsRemaining
        property :trigger_type, as: :triggerType

        property :created_at, as: :triggeredAt

        link :logs do | context |
          {
            href: triggered_webhook_logs_url(represented, context[:base_url]),
            title: "Webhook execution logs",
            name: represented.request_description
          }
        end

        link :'pb:webhook' do | context |
          {
            href: webhook_url(represented.webhook_uuid, context[:base_url]),
            title: "Webhook",
            name: represented.request_description
          }
        end
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
pact_broker-2.45.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.44.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.43.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.42.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.41.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.40.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.39.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.38.1 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.38.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.37.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.36.1 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.36.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.35.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.34.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.33.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.32.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.31.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.30.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.29.0 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb
pact_broker-2.27.6 lib/pact_broker/api/decorators/triggered_webhook_decorator.rb