Sha256: 7497965c691182867319908d3ea2d621526fcafa214bc72c95b1c0dcb1f2fbc7
Contents?: true
Size: 1.35 KB
Versions: 20
Compression:
Stored size: 1.35 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, getter: lambda { |_| FormatDateTime.call(created_at) }, writeable: false 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
20 entries across 20 versions & 1 rubygems