abstract class Athena::MIME::Part::AbstractMultipart
Overview
Base type of all multipart based parts.
Direct Known Subclasses
- Athena::MIME::Part::Multipart::Alternative
- Athena::MIME::Part::Multipart::Digest
- Athena::MIME::Part::Multipart::Form
- Athena::MIME::Part::Multipart::Mixed
- Athena::MIME::Part::Multipart::Related
Defined in:
part/abstract_multipart.crConstructors
- .new(parts : Enumerable(AMIME::Part::Abstract) = [] of AMIME::Part::Abstract)
- .new(*parts : AMIME::Part::Abstract) : self
Instance Method Summary
-
#media_type : String
Returns the media type of this part.
-
#parts : Array(Athena::MIME::Part::Abstract)
Returns the parts that make up this multipart 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
def media_type : String
#
Returns the media type of this part.
E.g. application
within application/pdf
.
def parts : Array(Athena::MIME::Part::Abstract)
#
Returns the parts that make up this multipart part.
def 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.