Class: Knockapi::Models::Message::RecipientSnapshot
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Knockapi::Models::Message::RecipientSnapshot
- Defined in:
- lib/knockapi/models/message.rb,
sig/knockapi/models/message.rbs
Overview
Instance Attribute Summary collapse
-
#channel_id ⇒ String?
The chat channel the message was delivered to (chat channels).
-
#email ⇒ String?
The email address the message was delivered to (email channels).
-
#name ⇒ String?
The recipient name at send time (email channels).
-
#user_id ⇒ String?
The chat user the message was direct-messaged to (chat channels).
-
#via_incoming_webhook ⇒ Boolean?
Whether the chat message was delivered via an incoming webhook.
Instance Method Summary collapse
-
#initialize(channel_id: nil, email: nil, name: nil, user_id: nil, via_incoming_webhook: nil) ⇒ Object
constructor
The destination the message was delivered to, captured at send time.
- #to_hash ⇒ {
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(channel_id: nil, email: nil, name: nil, user_id: nil, via_incoming_webhook: nil) ⇒ Object
The destination the message was delivered to, captured at send time. Email
channels carry email/name; chat channels carry the destination channel_id
or user_id, or via_incoming_webhook. Null when no snapshot was captured.
|
|
# File 'lib/knockapi/models/message.rb', line 447
|
Instance Attribute Details
#channel_id ⇒ String?
The chat channel the message was delivered to (chat channels)
421 |
# File 'lib/knockapi/models/message.rb', line 421 optional :channel_id, String, nil?: true |
#email ⇒ String?
The email address the message was delivered to (email channels)
427 |
# File 'lib/knockapi/models/message.rb', line 427 optional :email, String, nil?: true |
#name ⇒ String?
The recipient name at send time (email channels)
433 |
# File 'lib/knockapi/models/message.rb', line 433 optional :name, String, nil?: true |
#user_id ⇒ String?
The chat user the message was direct-messaged to (chat channels)
439 |
# File 'lib/knockapi/models/message.rb', line 439 optional :user_id, String, nil?: true |
#via_incoming_webhook ⇒ Boolean?
Whether the chat message was delivered via an incoming webhook
445 |
# File 'lib/knockapi/models/message.rb', line 445 optional :via_incoming_webhook, Knockapi::Internal::Type::Boolean, nil?: true |
Instance Method Details
#to_hash ⇒ {
341 |
# File 'sig/knockapi/models/message.rbs', line 341
def to_hash: -> {
|