class
Athena::MIME::Part::Text
- Athena::MIME::Part::Text
- Athena::MIME::Part::Abstract
- Reference
- Object
Overview
Represents textual content a part of an email.
Direct Known Subclasses
Defined in:
part/text.crConstructors
Instance Method Summary
-
#body : String
Returns the raw contents of this part as a string.
-
#disposition : String | Nil
Controls the
content-disposition
header value for this part. -
#disposition=(disposition : String | Nil)
Controls the
content-disposition
header value for this part. -
#media_sub_type : String
Returns the media sub-type of this part.
-
#media_type : String
Returns the media type of this part.
-
#name : String | Nil
Returns the name of this part.
-
#name=(name : String | Nil)
Returns the name of this part.
-
#prepared_headers : AMIME::Header::Collection
Returns a cloned
AMIME::Header::Collection
consisting of a final representation of the headers associated with this message.
Instance methods inherited from class Athena::MIME::Part::Abstract
body_to_s : String
body_to_s,
headers : AMIME::Header::Collection
headers,
media_sub_type : String
media_sub_type,
media_type : String
media_type,
prepared_headers : AMIME::Header::Collection
prepared_headers
Constructor Detail
Instance Method Detail
Returns the raw contents of this part as a string.
Use #body_to_s
to get a properly encoded representation.
Controls the content-disposition
header value for this part.
Returns the media sub-type of this part.
E.g. pdf
within application/pdf
.
Returns the media type of this part.
E.g. application
within application/pdf
.
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.