class

Athena::MIME::Part::Text

Inherits Athena::MIME::Part::Abstract < Reference < Object

Represents textual content a part of an email.

Constructors

new(body : String | IO | AMIME::Part::File, charset : String | Nil = "UTF-8", sub_type : String = "plain", encoding : String | Nil = nil)
Source

Instance methods

body

Returns the raw contents of this part as a string. Use #body_to_s to get a properly encoded representation.

Source
disposition

Controls the content-disposition header value for this part.

Source
disposition=(disposition : String | Nil)

Controls the content-disposition header value for this part.

Source
media_sub_type

Returns the media sub-type of this part. E.g. pdf within application/pdf.

Source
media_type

Returns the media type of this part. E.g. application within application/pdf.

Source
name

Returns the name of this part.

Source
name=(name : String | Nil)

Returns the name of this part.

Source
prepared_headers

Returns a cloned AMIME::Header::Collection consisting of a final representation of the headers associated with this message. I.e. Ensures the message's headers include the required ones.

Source