Class: Net::IMAP::BodyTypeText
- Inherits:
-
Struct
- Object
- Struct
- Net::IMAP::BodyTypeText
- Defined in:
- lib/net/imap.rb
Overview
Net::IMAP::BodyTypeText represents TEXT body structures of messages.
Fields:
- lines
-
Returns the size of the body in text lines.
And Net::IMAP::BodyTypeText has all fields of Net::IMAP::BodyTypeBasic.
Instance Attribute Summary collapse
-
#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.
-
#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
#content_id ⇒ Object
Returns the value of attribute content_id
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def content_id @content_id end |
#description ⇒ Object
Returns the value of attribute description
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def description @description end |
#disposition ⇒ Object
Returns the value of attribute disposition
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def disposition @disposition end |
#encoding ⇒ Object
Returns the value of attribute encoding
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def encoding @encoding end |
#extension ⇒ Object
Returns the value of attribute extension
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def extension @extension end |
#language ⇒ Object
Returns the value of attribute language
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def language @language end |
#lines ⇒ Object
Returns the value of attribute lines
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def lines @lines end |
#md5 ⇒ Object
Returns the value of attribute md5
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def md5 @md5 end |
#media_type ⇒ Object
Returns the value of attribute media_type
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def media_type @media_type end |
#param ⇒ Object
Returns the value of attribute param
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def param @param end |
#size ⇒ Object
Returns the value of attribute size
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 def size @size end |
#subtype ⇒ Object
Returns the value of attribute subtype
1779 1780 1781 |
# File 'lib/net/imap.rb', line 1779 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
.
1792 1793 1794 1795 1796 |
# File 'lib/net/imap.rb', line 1792 def media_subtype $stderr.printf("warning: media_subtype is obsolete.\n") $stderr.printf(" use subtype instead.\n") return subtype end |
#multipart? ⇒ Boolean
1785 1786 1787 |
# File 'lib/net/imap.rb', line 1785 def multipart? return false end |