class Athena::MIME::Part::Message

Overview

Represents a part that encapsulates an AMIME::Message.

Defined in:

part/message.cr

Constructors

Instance Method Summary

Instance methods inherited from class Athena::MIME::Part::Data

as_inline : self as_inline, content_id : String content_id, content_id=(id : String) : self content_id=, content_type : String content_type, filename : String | Nil filename, has_content_id? : Bool has_content_id?, media_type : String media_type, prepared_headers : AMIME::Header::Collection prepared_headers

Constructor methods inherited from class Athena::MIME::Part::Data

from_path(path : String | Path, name : String | Nil = nil, content_type : String | Nil = nil) : self from_path, new(body : String | IO | AMIME::Part::File, filename : String | Nil = nil, content_type : String | Nil = nil, encoding : String | Nil = nil) new

Instance methods inherited from class Athena::MIME::Part::Text

body : String body, disposition : String | Nil disposition, disposition=(disposition : String | Nil) disposition=, media_sub_type : String media_sub_type, media_type : String media_type, name : String | Nil name, name=(name : String | Nil) name=, prepared_headers : AMIME::Header::Collection prepared_headers

Constructor methods inherited from class Athena::MIME::Part::Text

new(body : String | IO | AMIME::Part::File, charset : String | Nil = "UTF-8", sub_type : String = "plain", encoding : String | Nil = nil) new

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(message : AMIME::Message) #

[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 body_to_s : String #

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


[View source]
def media_sub_type : String #

:inherit:


[View source]
def media_type : String #

Returns the media type of this part based on its body.


[View source]