Sha256: 0aa7c9e0d2a8eb2732b5d9e4a1bd4c7bb89d831a6f90f740a213b83664d16aaf
Contents?: true
Size: 1.28 KB
Versions: 28
Compression:
Stored size: 1.28 KB
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 :event_name, as: :eventName property :created_at, as: :triggeredAt link :'pb:logs' do | context | { href: triggered_webhook_logs_url(represented, context[:base_url]), title: "Webhook execution logs", name: represented.request_description } end link :logs do | context | { href: triggered_webhook_logs_url(represented, context[:base_url]), title: "DEPRECATED - Use pb:logs", name: represented.request_description } end link :'pb:webhook' do | context | if represented.webhook { href: webhook_url(represented.webhook_uuid, context[:base_url]), title: "Webhook", name: represented.request_description } end end end end end end
Version data entries
28 entries across 28 versions & 1 rubygems