Class: Mailtrap::InboundThreadMessage

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#attachmentsArray<InboundAttachment>? (readonly)

The message attachments

Returns:



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def attachments
  @attachments
end

#bccArray<String>? (readonly)

Bcc addresses

Returns:

  • (Array<String>, nil)

    the current value of bcc



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def bcc
  @bcc
end

#bounced_atString? (readonly)

Bounce timestamp (outbound messages only)

Returns:

  • (String, nil)

    the current value of bounced_at



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def bounced_at
  @bounced_at
end

#ccArray<String>? (readonly)

Cc addresses

Returns:

  • (Array<String>, nil)

    the current value of cc



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def cc
  @cc
end

#created_atString? (readonly)

ISO 8601 timestamp

Returns:

  • (String, nil)

    the current value of created_at



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def created_at
  @created_at
end

#delivered_atString? (readonly)

Delivery timestamp (outbound messages only)

Returns:

  • (String, nil)

    the current value of delivered_at



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def delivered_at
  @delivered_at
end

#delivery_statusString? (readonly)

Delivery status (outbound messages only)

Returns:

  • (String, nil)

    the current value of delivery_status



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def delivery_status
  @delivery_status
end

#directionString (readonly)

inbound or outbound

Returns:

  • (String)

    the current value of direction



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def direction
  @direction
end

#email_sizeInteger? (readonly)

Message size in bytes

Returns:

  • (Integer, nil)

    the current value of email_size



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def email_size
  @email_size
end

#fromString? (readonly)

Sender address

Returns:

  • (String, nil)

    the current value of from



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def from
  @from
end

#html_bodyString? (readonly)

Decoded HTML body

Returns:

  • (String, nil)

    the current value of html_body



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def html_body
  @html_body
end

#idString? (readonly)

The message ID

Returns:

  • (String, nil)

    the current value of id



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def id
  @id
end

#in_reply_toString? (readonly)

Value of the RFC 5322 In-Reply-To header

Returns:

  • (String, nil)

    the current value of in_reply_to



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def in_reply_to
  @in_reply_to
end

#message_group_idString? (readonly)

Groups messages sent together as one logical send

Returns:

  • (String, nil)

    the current value of message_group_id



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def message_group_id
  @message_group_id
end

#referencesArray<String>? (readonly)

Values of the RFC 5322 References header

Returns:

  • (Array<String>, nil)

    the current value of references



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def references
  @references
end

#reply_toString? (readonly)

Reply-To address

Returns:

  • (String, nil)

    the current value of reply_to



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def reply_to
  @reply_to
end

#rfc_message_idString? (readonly)

Value of the RFC 5322 Message-ID header

Returns:

  • (String, nil)

    the current value of rfc_message_id



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def rfc_message_id
  @rfc_message_id
end

#subjectString? (readonly)

Email subject

Returns:

  • (String, nil)

    the current value of subject



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def subject
  @subject
end

#text_bodyString? (readonly)

Decoded text body

Returns:

  • (String, nil)

    the current value of text_body



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def text_body
  @text_body
end

#toArray<String>? (readonly)

Recipient addresses

Returns:

  • (Array<String>, nil)

    the current value of to



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def to
  @to
end

#visibility_statusString (readonly)

available or placeholder

Returns:

  • (String)

    the current value of visibility_status



29
30
31
# File 'lib/mailtrap/inbound_thread_message.rb', line 29

def visibility_status
  @visibility_status
end