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,
and the delivery lifecycle fields are only set on available outbound messages.
Instance Attribute Summary collapse
-
#attachments ⇒ Array<InboundAttachment>?
readonly
The message attachments.
-
#bcc ⇒ Array<String>?
readonly
Bcc addresses.
-
#bounced_at ⇒ String?
readonly
Bounce timestamp (outbound messages only).
-
#cc ⇒ Array<String>?
readonly
Cc addresses.
-
#created_at ⇒ String?
readonly
ISO 8601 timestamp.
-
#delivered_at ⇒ String?
readonly
Delivery timestamp (outbound messages only).
-
#delivery_status ⇒ String?
readonly
Delivery status (outbound messages only).
-
#direction ⇒ String
readonly
inbound or outbound.
-
#email_size ⇒ Integer?
readonly
Message size in bytes.
-
#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
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def @attachments end |
#bcc ⇒ Array<String>? (readonly)
Bcc addresses
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def bcc @bcc end |
#bounced_at ⇒ String? (readonly)
Bounce timestamp (outbound messages only)
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def bounced_at @bounced_at end |
#cc ⇒ Array<String>? (readonly)
Cc addresses
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def cc @cc end |
#created_at ⇒ String? (readonly)
ISO 8601 timestamp
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def created_at @created_at end |
#delivered_at ⇒ String? (readonly)
Delivery timestamp (outbound messages only)
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def delivered_at @delivered_at end |
#delivery_status ⇒ String? (readonly)
Delivery status (outbound messages only)
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def delivery_status @delivery_status end |
#direction ⇒ String (readonly)
inbound or outbound
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def direction @direction end |
#email_size ⇒ Integer? (readonly)
Message size in bytes
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def email_size @email_size end |
#from ⇒ String? (readonly)
Sender address
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def from @from end |
#html_body ⇒ String? (readonly)
Decoded HTML body
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def html_body @html_body end |
#id ⇒ String? (readonly)
The message ID
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def id @id end |
#in_reply_to ⇒ String? (readonly)
Value of the RFC 5322 In-Reply-To header
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def in_reply_to @in_reply_to end |
#message_group_id ⇒ String? (readonly)
Groups messages sent together as one logical send
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def @message_group_id end |
#references ⇒ Array<String>? (readonly)
Values of the RFC 5322 References header
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def references @references end |
#reply_to ⇒ String? (readonly)
Reply-To address
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def reply_to @reply_to end |
#rfc_message_id ⇒ String? (readonly)
Value of the RFC 5322 Message-ID header
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def @rfc_message_id end |
#subject ⇒ String? (readonly)
Email subject
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def subject @subject end |
#text_body ⇒ String? (readonly)
Decoded text body
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def text_body @text_body end |
#to ⇒ Array<String>? (readonly)
Recipient addresses
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def to @to end |
#visibility_status ⇒ String (readonly)
available or placeholder
29 30 31 |
# File 'lib/mailtrap/inbound_thread_message.rb', line 29 def visibility_status @visibility_status end |