Class: Apologist::Types::WebhookPayload

Inherits:
Internal::Types::Model show all
Defined in:
lib/Apologist/types/webhook_payload.rb

Overview

Canonical JSON body POSTed to a configured webhook URL. notification, event, and agent are always present; the remaining sections appear only when relevant to the event. Treat the payload as additive and ignore unrecognised fields.

Method Summary

Methods inherited from Internal::Types::Model

#==, ===, add_extra_field_definition, coerce, extra_fields, field, fields, #initialize, #inspect, literal, load, #to_h

Methods included from Internal::Types::Type

#coerce, #strict!, #strict?

Methods included from Internal::JSON::Serializable

#dump, #load

Constructor Details

This class inherits a constructor from Apologist::Internal::Types::Model