Class: Courier::Models::WebhookRecipient
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Courier::Models::WebhookRecipient
- Defined in:
- lib/courier/models/webhook_recipient.rb,
sig/courier/models/webhook_recipient.rbs
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(webhook:) ⇒ WebhookRecipient
constructor
Send via webhook.
- #to_hash ⇒ { webhook: Courier::WebhookProfile }
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(webhook:) ⇒ WebhookRecipient
Send via webhook
|
|
# File 'lib/courier/models/webhook_recipient.rb', line 11
|
Instance Attribute Details
#webhook ⇒ Courier::Models::WebhookProfile
9 |
# File 'lib/courier/models/webhook_recipient.rb', line 9 required :webhook, -> { Courier::WebhookProfile } |
Instance Method Details
#to_hash ⇒ { webhook: Courier::WebhookProfile }
10 |
# File 'sig/courier/models/webhook_recipient.rbs', line 10
def to_hash: -> { webhook: Courier::WebhookProfile }
|