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])


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

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:



727
728
729
# File 'sig/types.rbs', line 727

def attachments
  @attachments
end

#bcc_emailsArray[String] (readonly)

Returns the value of attribute bcc_emails.

Returns:

  • (Array[String])


721
722
723
# File 'sig/types.rbs', line 721

def bcc_emails
  @bcc_emails
end

#cc_emailsArray[String] (readonly)

Returns the value of attribute cc_emails.

Returns:

  • (Array[String])


720
721
722
# File 'sig/types.rbs', line 720

def cc_emails
  @cc_emails
end

#contentString (readonly)

Returns the value of attribute content.

Returns:

  • (String)


726
727
728
# File 'sig/types.rbs', line 726

def content
  @content
end

#dateString? (readonly)

Returns the value of attribute date.

Returns:

  • (String, nil)


722
723
724
# File 'sig/types.rbs', line 722

def date
  @date
end

#from_emailString? (readonly)

Returns the value of attribute from_email.

Returns:

  • (String, nil)


718
719
720
# File 'sig/types.rbs', line 718

def from_email
  @from_email
end

#html_contentString? (readonly)

Returns the value of attribute html_content.

Returns:

  • (String, nil)


725
726
727
# File 'sig/types.rbs', line 725

def html_content
  @html_content
end

#message_idString? (readonly)

Returns the value of attribute message_id.

Returns:

  • (String, nil)


723
724
725
# File 'sig/types.rbs', line 723

def message_id
  @message_id
end

#metadataHash[String, String] (readonly)

Returns the value of attribute metadata.

Returns:

  • (Hash[String, String])


728
729
730
# File 'sig/types.rbs', line 728

def 
  @metadata
end

#plain_textString? (readonly)

Returns the value of attribute plain_text.

Returns:

  • (String, nil)


724
725
726
# File 'sig/types.rbs', line 724

def plain_text
  @plain_text
end

#subjectString? (readonly)

Returns the value of attribute subject.

Returns:

  • (String, nil)


717
718
719
# File 'sig/types.rbs', line 717

def subject
  @subject
end

#to_emailsArray[String] (readonly)

Returns the value of attribute to_emails.

Returns:

  • (Array[String])


719
720
721
# File 'sig/types.rbs', line 719

def to_emails
  @to_emails
end