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
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def content_id @content_id end |
#description ⇒ Object
Returns the value of attribute description
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def description @description end |
#disposition ⇒ Object
Returns the value of attribute disposition
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def disposition @disposition end |
#encoding ⇒ Object
Returns the value of attribute encoding
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def encoding @encoding end |
#extension ⇒ Object
Returns the value of attribute extension
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def extension @extension end |
#language ⇒ Object
Returns the value of attribute language
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def language @language end |
#location ⇒ Object
Returns the value of attribute location
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def location @location end |
#md5 ⇒ Object
Returns the value of attribute md5
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def md5 @md5 end |
#media_type ⇒ Object
Returns the value of attribute media_type
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def media_type @media_type end |
#param ⇒ Object
Returns the value of attribute param
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def param @param end |
#size ⇒ Object
Returns the value of attribute size
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 def size @size end |
#subtype ⇒ Object
Returns the value of attribute subtype
825 826 827 |
# File 'lib/net/imap/response_data.rb', line 825 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? ++
941 942 943 944 |
# File 'lib/net/imap/response_data.rb', line 941 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.
927 928 929 |
# File 'lib/net/imap/response_data.rb', line 927 def multipart? return false end |