class Athena::MIME::Part::Text

Overview

Represents textual content a part of an email.

Direct Known Subclasses

Defined in:

part/text.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(body : String | IO | AMIME::Part::File, charset : String | Nil = "UTF-8", sub_type : String = "plain", encoding : String | Nil = nil) #

[View source]

Instance Method Detail

def body : String #

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


[View source]
def disposition : String | Nil #

Controls the content-disposition header value for this part.


[View source]
def disposition=(disposition : String | Nil) #

Controls the content-disposition header value for this part.


[View source]
def media_sub_type : String #

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


[View source]
def media_type : String #

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


[View source]
def name : String | Nil #

Returns the name of this part.


[View source]
def name=(name : String | Nil) #

Returns the name of this part.


[View source]
def prepared_headers : AMIME::Header::Collection #
Description copied from class Athena::MIME::Part::Abstract

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]