Class: Telnyx::Models::InboundMessage
Defined Under Namespace
Modules: Direction, RecordType, Status
Classes: Bcc, Cc, From, ReplyTo, To
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(email:, name: nil) ⇒ Object
|
# File 'lib/telnyx/models/inbound_message.rb', line 220
|
Instance Attribute Details
#attachments ⇒ Array<Hash{Symbol=>Object}>
14
15
|
# File 'lib/telnyx/models/inbound_message.rb', line 14
required :attachments,
Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]]
|
20
|
# File 'lib/telnyx/models/inbound_message.rb', line 20
required :bcc, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::InboundMessage::Bcc] }
|
25
|
# File 'lib/telnyx/models/inbound_message.rb', line 25
required :cc, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::InboundMessage::Cc] }
|
#created_at ⇒ Time
30
|
# File 'lib/telnyx/models/inbound_message.rb', line 30
required :created_at, Time
|
35
|
# File 'lib/telnyx/models/inbound_message.rb', line 35
required :direction, enum: -> { Telnyx::InboundMessage::Direction }
|
40
|
# File 'lib/telnyx/models/inbound_message.rb', line 40
required :from, -> { Telnyx::InboundMessage::From }
|
#has_quoted_text ⇒ Boolean
Whether conservative plain-text extraction detected a quoted tail. False does
not prove that the source contains no quoted content.
47
|
# File 'lib/telnyx/models/inbound_message.rb', line 47
required :has_quoted_text, Telnyx::Internal::Type::Boolean
|
52
|
# File 'lib/telnyx/models/inbound_message.rb', line 52
required :headers, Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]
|
#html_body_url ⇒ String?
URL for an offloaded HTML body. Null means the body is not offloaded to a URL;
an inline HTML body may still exist but is not returned on list reads.
reply_text and has_quoted_text are computed from the inline plain-text body
when present.
61
|
# File 'lib/telnyx/models/inbound_message.rb', line 61
required :html_body_url, String, nil?: true
|
#id ⇒ String
9
|
# File 'lib/telnyx/models/inbound_message.rb', line 9
required :id, String
|
#in_reply_to ⇒ String?
66
|
# File 'lib/telnyx/models/inbound_message.rb', line 66
required :in_reply_to, String, nil?: true
|
#inbox_id ⇒ String
71
|
# File 'lib/telnyx/models/inbound_message.rb', line 71
required :inbox_id, String
|
#inline_files ⇒ Array<Hash{Symbol=>Object}>
76
77
|
# File 'lib/telnyx/models/inbound_message.rb', line 76
required :inline_files,
Telnyx::Internal::Type::ArrayOf[Telnyx::Internal::Type::HashOf[Telnyx::Internal::Type::Unknown]]
|
#message_id ⇒ String
83
|
# File 'lib/telnyx/models/inbound_message.rb', line 83
required :message_id, String
|
#read_at ⇒ Time?
88
|
# File 'lib/telnyx/models/inbound_message.rb', line 88
required :read_at, Time, nil?: true
|
#received_at ⇒ Time
93
|
# File 'lib/telnyx/models/inbound_message.rb', line 93
required :received_at, Time
|
98
|
# File 'lib/telnyx/models/inbound_message.rb', line 98
required :record_type, enum: -> { Telnyx::InboundMessage::RecordType }
|
#references ⇒ Array<String>
Ordered RFC Message-ID values from the References header.
104
|
# File 'lib/telnyx/models/inbound_message.rb', line 104
required :references, Telnyx::Internal::Type::ArrayOf[String]
|
#reply_text ⇒ String?
Conservatively extracted new-reply content from the available plain-text body.
Null means no plain-text body was available because it was absent or offloaded;
HTML bodies are not parsed.
112
|
# File 'lib/telnyx/models/inbound_message.rb', line 112
required :reply_text, String, nil?: true
|
117
|
# File 'lib/telnyx/models/inbound_message.rb', line 117
required :reply_to, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::InboundMessage::ReplyTo] }
|
122
|
# File 'lib/telnyx/models/inbound_message.rb', line 122
required :status, enum: -> { Telnyx::InboundMessage::Status }
|
#subject ⇒ String?
127
|
# File 'lib/telnyx/models/inbound_message.rb', line 127
required :subject, String, nil?: true
|
#text_body_url ⇒ String?
URL for an offloaded plain-text body. Null means the body is not offloaded to a
URL; an inline plain-text body may still exist but is not returned on list
reads. reply_text and has_quoted_text are computed from the inline
plain-text body when present.
136
|
# File 'lib/telnyx/models/inbound_message.rb', line 136
required :text_body_url, String, nil?: true
|
#thread_id ⇒ String
141
|
# File 'lib/telnyx/models/inbound_message.rb', line 141
required :thread_id, String
|
146
|
# File 'lib/telnyx/models/inbound_message.rb', line 146
required :to, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::InboundMessage::To] }
|
#updated_at ⇒ Time
151
|
# File 'lib/telnyx/models/inbound_message.rb', line 151
required :updated_at, Time
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/telnyx/models/inbound_message.rb', line 247
|
Instance Method Details
#to_hash ⇒ {
115
|
# File 'sig/telnyx/models/inbound_message.rbs', line 115
def to_hash: -> {
|