Class: Net::IMAP::BodyTypeMessage
- Inherits:
-
Struct
- Object
- Struct
- Net::IMAP::BodyTypeMessage
- Defined in:
- lib/net/imap.rb
Overview
Net::IMAP::BodyTypeMessage represents MESSAGE/RFC822 body structures of messages.
Fields:
- envelope
-
Returns a Net::IMAP::Envelope giving the envelope structure.
- body
-
Returns an object giving the body structure.
And Net::IMAP::BodyTypeMessage has all methods of Net::IMAP::BodyTypeText.
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#content_id ⇒ Object
Returns the value of attribute content_id.
-
#description ⇒ Object
Returns the value of attribute description.
-
#disposition ⇒ Object
Returns the value of attribute disposition.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#envelope ⇒ Object
Returns the value of attribute envelope.
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#language ⇒ Object
Returns the value of attribute language.
-
#lines ⇒ Object
Returns the value of attribute lines.
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#param ⇒ Object
Returns the value of attribute param.
-
#size ⇒ Object
Returns the value of attribute size.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
Instance Method Summary collapse
-
#media_subtype ⇒ Object
Obsolete: use
subtype
instead. - #multipart? ⇒ Boolean
Instance Attribute Details
#body ⇒ Object
Returns the value of attribute body
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def body @body end |
#content_id ⇒ Object
Returns the value of attribute content_id
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def content_id @content_id end |
#description ⇒ Object
Returns the value of attribute description
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def description @description end |
#disposition ⇒ Object
Returns the value of attribute disposition
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def disposition @disposition end |
#encoding ⇒ Object
Returns the value of attribute encoding
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def encoding @encoding end |
#envelope ⇒ Object
Returns the value of attribute envelope
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def envelope @envelope end |
#extension ⇒ Object
Returns the value of attribute extension
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def extension @extension end |
#language ⇒ Object
Returns the value of attribute language
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def language @language end |
#lines ⇒ Object
Returns the value of attribute lines
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def lines @lines end |
#md5 ⇒ Object
Returns the value of attribute md5
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def md5 @md5 end |
#media_type ⇒ Object
Returns the value of attribute media_type
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def media_type @media_type end |
#param ⇒ Object
Returns the value of attribute param
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def param @param end |
#size ⇒ Object
Returns the value of attribute size
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def size @size end |
#subtype ⇒ Object
Returns the value of attribute subtype
1809 1810 1811 |
# File 'lib/net/imap.rb', line 1809 def subtype @subtype end |
Instance Method Details
#media_subtype ⇒ Object
Obsolete: use subtype
instead. Calling this will generate a warning message to stderr
, then return the value of subtype
.
1822 1823 1824 1825 1826 |
# File 'lib/net/imap.rb', line 1822 def media_subtype $stderr.printf("warning: media_subtype is obsolete.\n") $stderr.printf(" use subtype instead.\n") return subtype end |
#multipart? ⇒ Boolean
1815 1816 1817 |
# File 'lib/net/imap.rb', line 1815 def multipart? return false end |