Class: Xberg::EmailExtractionResult

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEmailExtractionResult

Returns a new instance of EmailExtractionResult.

Parameters:

  • subject: (String)
  • from_email: (String)
  • to_emails: (Array[String])
  • cc_emails: (Array[String])
  • bcc_emails: (Array[String])
  • date: (String)
  • message_id: (String)
  • plain_text: (String)
  • html_content: (String)
  • content: (String)
  • attachments: (Array[EmailAttachment])
  • metadata: (Hash[String, String])


1132
# File 'sig/types.rbs', line 1132

def initialize: (?subject: String, ?from_email: String, to_emails: Array[String], cc_emails: Array[String], bcc_emails: Array[String], ?date: String, ?message_id: String, ?plain_text: String, ?html_content: String, content: String, attachments: Array[EmailAttachment], metadata: Hash[String, String]) -> void

Instance Attribute Details

#attachmentsArray[EmailAttachment] (readonly)

Returns the value of attribute attachments.

Returns:



1129
1130
1131
# File 'sig/types.rbs', line 1129

def attachments
  @attachments
end

#bcc_emailsArray[String] (readonly)

Returns the value of attribute bcc_emails.

Returns:

  • (Array[String])


1123
1124
1125
# File 'sig/types.rbs', line 1123

def bcc_emails
  @bcc_emails
end

#cc_emailsArray[String] (readonly)

Returns the value of attribute cc_emails.

Returns:

  • (Array[String])


1122
1123
1124
# File 'sig/types.rbs', line 1122

def cc_emails
  @cc_emails
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


1128
1129
1130
# File 'sig/types.rbs', line 1128

def content
  @content
end

#dateString (readonly)

Returns the value of attribute date.

Returns:

  • (String)


1124
1125
1126
# File 'sig/types.rbs', line 1124

def date
  @date
end

#from_emailString (readonly)

Returns the value of attribute from_email.

Returns:

  • (String)


1120
1121
1122
# File 'sig/types.rbs', line 1120

def from_email
  @from_email
end

#html_contentString (readonly)

Returns the value of attribute html_content.

Returns:

  • (String)


1127
1128
1129
# File 'sig/types.rbs', line 1127

def html_content
  @html_content
end

#message_idString (readonly)

Returns the value of attribute message_id.

Returns:

  • (String)


1125
1126
1127
# File 'sig/types.rbs', line 1125

def message_id
  @message_id
end

#metadataHash[String, String] (readonly)

Returns the value of attribute metadata.

Returns:

  • (Hash[String, String])


1130
1131
1132
# File 'sig/types.rbs', line 1130

def 
  @metadata
end

#plain_textString (readonly)

Returns the value of attribute plain_text.

Returns:

  • (String)


1126
1127
1128
# File 'sig/types.rbs', line 1126

def plain_text
  @plain_text
end

#subjectString (readonly)

Returns the value of attribute subject.

Returns:

  • (String)


1119
1120
1121
# File 'sig/types.rbs', line 1119

def subject
  @subject
end

#to_emailsArray[String] (readonly)

Returns the value of attribute to_emails.

Returns:

  • (Array[String])


1121
1122
1123
# File 'sig/types.rbs', line 1121

def to_emails
  @to_emails
end