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
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def content_id @content_id end |
#description ⇒ Object
Returns the value of attribute description
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def description @description end |
#disposition ⇒ Object
Returns the value of attribute disposition
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def disposition @disposition end |
#encoding ⇒ Object
Returns the value of attribute encoding
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def encoding @encoding end |
#extension ⇒ Object
Returns the value of attribute extension
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def extension @extension end |
#language ⇒ Object
Returns the value of attribute language
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def language @language end |
#location ⇒ Object
Returns the value of attribute location
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def location @location end |
#md5 ⇒ Object
Returns the value of attribute md5
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def md5 @md5 end |
#media_type ⇒ Object
Returns the value of attribute media_type
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def media_type @media_type end |
#param ⇒ Object
Returns the value of attribute param
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def param @param end |
#size ⇒ Object
Returns the value of attribute size
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def size @size end |
#subtype ⇒ Object
Returns the value of attribute subtype
798 799 800 |
# File 'lib/net/imap/response_data.rb', line 798 def subtype @subtype end |
Instance Method Details
#media_subtype ⇒ Object
:call-seq: media_subtype -> subtype
- Obsolete
Use
subtypeinstead. 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? ++
914 915 916 917 918 |
# File 'lib/net/imap/response_data.rb', line 914 def media_subtype warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1, category: :deprecated) return subtype end |
#multipart? ⇒ Boolean
:call-seq: multipart? -> false
BodyTypeBasic is not used for multipart MIME parts.
900 901 902 |
# File 'lib/net/imap/response_data.rb', line 900 def multipart? return false end |