Class: Net::IMAP::BodyTypeBasic
- Inherits:
-
Struct
- Object
- Struct
- Net::IMAP::BodyTypeBasic
- Includes:
- BodyStructure
- Defined in:
- lib/net/imap/response_data.rb
Overview
Net::IMAP::BodyTypeBasic represents basic body structures of messages and message parts, unless they have a Content-Type
that is handled by BodyTypeText, BodyTypeMessage, or BodyTypeMultipart.
See [IMAP4rev1] §7.4.2 and [IMAP4rev2] §7.5.2 for full description of all BODYSTRUCTURE
fields, and also Net::IMAP@Message+envelope+and+body+structure for other relevant RFCs.
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.
-
#location ⇒ Object
Returns the value of attribute location.
-
#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
:call-seq: media_subtype -> subtype.
-
#multipart? ⇒ Boolean
:call-seq: multipart? -> false.
Instance Attribute Details
#content_id ⇒ Object
Returns the value of attribute content_id
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def content_id @content_id end |
#description ⇒ Object
Returns the value of attribute description
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def description @description end |
#disposition ⇒ Object
Returns the value of attribute disposition
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def disposition @disposition end |
#encoding ⇒ Object
Returns the value of attribute encoding
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def encoding @encoding end |
#extension ⇒ Object
Returns the value of attribute extension
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def extension @extension end |
#language ⇒ Object
Returns the value of attribute language
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def language @language end |
#location ⇒ Object
Returns the value of attribute location
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def location @location end |
#md5 ⇒ Object
Returns the value of attribute md5
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def md5 @md5 end |
#media_type ⇒ Object
Returns the value of attribute media_type
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def media_type @media_type end |
#param ⇒ Object
Returns the value of attribute param
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def param @param end |
#size ⇒ Object
Returns the value of attribute size
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def size @size end |
#subtype ⇒ Object
Returns the value of attribute subtype
766 767 768 |
# File 'lib/net/imap/response_data.rb', line 766 def subtype @subtype end |
Instance Method Details
#media_subtype ⇒ Object
:call-seq: media_subtype -> subtype
- Obsolete
Use
subtype
instead. Calling this will generate a warning message tostderr
, then return the value ofsubtype
.
– TODO: why not just keep this as an alias? Would “media_subtype” be used for something else? ++
882 883 884 885 |
# File 'lib/net/imap/response_data.rb', line 882 def media_subtype warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1) return subtype end |
#multipart? ⇒ Boolean
:call-seq: multipart? -> false
BodyTypeBasic is not used for multipart MIME parts.
868 869 870 |
# File 'lib/net/imap/response_data.rb', line 868 def multipart? return false end |