class Athena::MIME::Part::Message
- Athena::MIME::Part::Message
- Athena::MIME::Part::Data
- Athena::MIME::Part::Text
- Athena::MIME::Part::Abstract
- Reference
- Object
Overview
Represents a part that encapsulates an AMIME::Message
.
Defined in:
part/message.crConstructors
Instance Method Summary
-
#body : String
Returns the raw contents of this part as a string.
-
#body_to_s : String
Returns a string representation of the body of this part, excluding any headers.
-
#media_sub_type : String
:inherit:
-
#media_type : String
Returns the media type of this part based on its body.
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
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.
def body_to_s : String
#
Returns a string representation of the body of this part, excluding any headers.