Class: Mailtrap::InboundThreadMessage
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::InboundThreadMessage
- Defined in:
- lib/mailtrap/inbound_thread_message.rb
Overview
Data Transfer Object for a message inside an inbound thread.
Only visibility_status and direction are always present; placeholder entries omit the rest.
Instance Attribute Summary collapse
-
#attachments ⇒ Array<InboundAttachment>?
readonly
The message attachments.
-
#bcc ⇒ Array<String>?
readonly
Bcc addresses.
-
#cc ⇒ Array<String>?
readonly
Cc addresses.
-
#created_at ⇒ String?
readonly
ISO 8601 timestamp.
-
#delivery ⇒ InboundThreadMessageDelivery?
readonly
Delivery outcome (outbound messages only).
-
#direction ⇒ String
readonly
inbound or outbound.
-
#email_size ⇒ Integer?
readonly
Message size in bytes.
-
#forwards ⇒ Array<InboundForwardOutcome>?
readonly
Forward outcomes (inbound messages only).
-
#from ⇒ String?
readonly
Sender address.
-
#html_body ⇒ String?
readonly
Decoded HTML body.
-
#id ⇒ String?
readonly
The message ID.
-
#in_reply_to ⇒ String?
readonly
Value of the RFC 5322 In-Reply-To header.
-
#message_group_id ⇒ String?
readonly
Groups messages sent together as one logical send.
-
#references ⇒ Array<String>?
readonly
Values of the RFC 5322 References header.
-
#reply_to ⇒ String?
readonly
Reply-To address.
-
#rfc_message_id ⇒ String?
readonly
Value of the RFC 5322 Message-ID header.
-
#subject ⇒ String?
readonly
Email subject.
-
#text_body ⇒ String?
readonly
Decoded text body.
-
#to ⇒ Array<String>?
readonly
Recipient addresses.
-
#visibility_status ⇒ String
readonly
available or placeholder.
Instance Attribute Details
#attachments ⇒ Array<InboundAttachment>? (readonly)
The message attachments
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def @attachments end |
#bcc ⇒ Array<String>? (readonly)
Bcc addresses
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def bcc @bcc end |
#cc ⇒ Array<String>? (readonly)
Cc addresses
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def cc @cc end |
#created_at ⇒ String? (readonly)
ISO 8601 timestamp
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def created_at @created_at end |
#delivery ⇒ InboundThreadMessageDelivery? (readonly)
Delivery outcome (outbound messages only)
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def delivery @delivery end |
#direction ⇒ String (readonly)
inbound or outbound
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def direction @direction end |
#email_size ⇒ Integer? (readonly)
Message size in bytes
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def email_size @email_size end |
#forwards ⇒ Array<InboundForwardOutcome>? (readonly)
Forward outcomes (inbound messages only)
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def forwards @forwards end |
#from ⇒ String? (readonly)
Sender address
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def from @from end |
#html_body ⇒ String? (readonly)
Decoded HTML body
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def html_body @html_body end |
#id ⇒ String? (readonly)
The message ID
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def id @id end |
#in_reply_to ⇒ String? (readonly)
Value of the RFC 5322 In-Reply-To header
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def in_reply_to @in_reply_to end |
#message_group_id ⇒ String? (readonly)
Groups messages sent together as one logical send
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def @message_group_id end |
#references ⇒ Array<String>? (readonly)
Values of the RFC 5322 References header
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def references @references end |
#reply_to ⇒ String? (readonly)
Reply-To address
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def reply_to @reply_to end |
#rfc_message_id ⇒ String? (readonly)
Value of the RFC 5322 Message-ID header
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def @rfc_message_id end |
#subject ⇒ String? (readonly)
Email subject
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def subject @subject end |
#text_body ⇒ String? (readonly)
Decoded text body
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def text_body @text_body end |
#to ⇒ Array<String>? (readonly)
Recipient addresses
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def to @to end |
#visibility_status ⇒ String (readonly)
available or placeholder
27 28 29 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 27 def visibility_status @visibility_status end |