Class: Mailtrap::InboundThread
- Inherits:
-
Struct
- Object
- Struct
- Mailtrap::InboundThread
- Defined in:
- lib/mailtrap/inbound_thread.rb
Overview
Data Transfer Object for an inbound thread (summary in list, with embedded messages when fetched by ID)
rubocop:disable Lint/StructNewOverride -- size is an API field that shadows Struct#size
Instance Attribute Summary collapse
-
#attachments ⇒ Array<InboundAttachment>
readonly
Attachments across the thread.
-
#first_message_at ⇒ String
readonly
ISO 8601 timestamp of the first message.
-
#id ⇒ String
readonly
The thread ID.
-
#last_activity_at ⇒ String
readonly
ISO 8601 timestamp of the last activity.
-
#last_message_id ⇒ String?
readonly
ID of the most recent message.
-
#last_received_at ⇒ String?
readonly
ISO 8601 timestamp of the last received message.
-
#last_sent_at ⇒ String?
readonly
ISO 8601 timestamp of the last sent message.
-
#message_count ⇒ Integer
readonly
Number of messages in the thread.
-
#messages ⇒ Array<InboundThreadMessage>?
readonly
The thread's messages (only when fetched by ID).
-
#recipients ⇒ Array<String>
readonly
Distinct recipient addresses in the thread.
-
#senders ⇒ Array<String>
readonly
Distinct sender addresses in the thread.
-
#size ⇒ Integer
readonly
Total size of the thread in bytes.
-
#subject ⇒ String?
readonly
The thread subject.
Instance Attribute Details
#attachments ⇒ Array<InboundAttachment> (readonly)
Attachments across the thread
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def @attachments end |
#first_message_at ⇒ String (readonly)
ISO 8601 timestamp of the first message
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def @first_message_at end |
#id ⇒ String (readonly)
The thread ID
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def id @id end |
#last_activity_at ⇒ String (readonly)
ISO 8601 timestamp of the last activity
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def last_activity_at @last_activity_at end |
#last_message_id ⇒ String? (readonly)
ID of the most recent message
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def @last_message_id end |
#last_received_at ⇒ String? (readonly)
ISO 8601 timestamp of the last received message
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def last_received_at @last_received_at end |
#last_sent_at ⇒ String? (readonly)
ISO 8601 timestamp of the last sent message
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def last_sent_at @last_sent_at end |
#message_count ⇒ Integer (readonly)
Number of messages in the thread
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def @message_count end |
#messages ⇒ Array<InboundThreadMessage>? (readonly)
The thread's messages (only when fetched by ID)
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def @messages end |
#recipients ⇒ Array<String> (readonly)
Distinct recipient addresses in the thread
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def recipients @recipients end |
#senders ⇒ Array<String> (readonly)
Distinct sender addresses in the thread
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def senders @senders end |
#size ⇒ Integer (readonly)
Total size of the thread in bytes
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def size @size end |
#subject ⇒ String? (readonly)
The thread subject
20 21 22 |
# File 'lib/mailtrap/inbound_thread.rb', line 20 def subject @subject end |