abstract class Athena::MIME::Part::AbstractMultipart

Overview

Base type of all multipart based parts.

Direct Known Subclasses

Defined in:

part/abstract_multipart.cr

Constructors

Instance Method Summary

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

def self.new(parts : Enumerable(AMIME::Part::Abstract) = [] of AMIME::Part::Abstract) #

[View source]
def self.new(*parts : AMIME::Part::Abstract) : self #

[View source]

Instance Method Detail

def media_type : String #

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


[View source]
def parts : Array(Athena::MIME::Part::Abstract) #

Returns the parts that make up this multipart part.


[View source]
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.


[View source]