Class: Net::IMAP::BodyTypeMultipart
- Inherits:
-
Struct
- Object
- Struct
- Net::IMAP::BodyTypeMultipart
- Defined in:
- lib/net/imap/response_data.rb
Overview
Net::IMAP::BodyTypeMultipart represents multipart body structures of messages.
Fields:
- media_type
-
Returns the content media type name as defined in [MIME-IMB].
- subtype
-
Returns the content subtype name as defined in [MIME-IMB].
- parts
-
Returns multiple parts.
- param
-
Returns a hash that represents parameters as defined in [MIME-IMB].
- disposition
-
Returns a Net::IMAP::ContentDisposition object giving the content disposition.
- language
-
Returns a string or an array of strings giving the body language value as defined in [LANGUAGE-TAGS].
- extension
-
Returns extension data.
- multipart?
-
Returns true.
Instance Attribute Summary collapse
-
#disposition ⇒ Object
Returns the value of attribute disposition.
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#language ⇒ Object
Returns the value of attribute language.
-
#media_type ⇒ Object
Returns the value of attribute media_type.
-
#param ⇒ Object
Returns the value of attribute param.
-
#parts ⇒ Object
Returns the value of attribute parts.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
Instance Method Summary collapse
-
#media_subtype ⇒ Object
Obsolete: use
subtype
instead. - #multipart? ⇒ Boolean
Instance Attribute Details
#disposition ⇒ Object
Returns the value of attribute disposition
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 def disposition @disposition end |
#extension ⇒ Object
Returns the value of attribute extension
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 def extension @extension end |
#language ⇒ Object
Returns the value of attribute language
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 def language @language end |
#media_type ⇒ Object
Returns the value of attribute media_type
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 def media_type @media_type end |
#param ⇒ Object
Returns the value of attribute param
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 def param @param end |
#parts ⇒ Object
Returns the value of attribute parts
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 def parts @parts end |
#subtype ⇒ Object
Returns the value of attribute subtype
501 502 503 |
# File 'lib/net/imap/response_data.rb', line 501 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
.
512 513 514 515 |
# File 'lib/net/imap/response_data.rb', line 512 def media_subtype warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1) return subtype end |
#multipart? ⇒ Boolean
505 506 507 |
# File 'lib/net/imap/response_data.rb', line 505 def multipart? return true end |