Skip to content

abstract class Athena::MIME::Part::Abstract
inherits Reference #

Base type of all parts that provides common utilities and abstractions.

Direct known subclasses

Athena::MIME::Part::AbstractMultipart Athena::MIME::Part::Text

Methods#

#body_to_s : String#

Returns a string representation of the body of this part, excluding any headers.

#headers : AMIME::Header::Collection#

Returns the headers associated with this part.

abstract #media_sub_type : String#

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

abstract #media_type : String#

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

#prepared_headers : AMIME::Header::Collection#

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.