Class: Net::IMAP::BodyTypeMultipart
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
BodyStructure,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | lib/net/imap/response_data.rb |
Overview
BodyTypeMultipart represents body structures of messages and
message parts, when Content-Type is multipart/*.
Instance Attribute Summary
-
#disposition ⇒ ContentDisposition
rw
Returns a
ContentDispositionobject giving the content disposition. -
#extension ⇒ Array
rw
Returns extension data as an array of numbers strings, and nested arrays (of numbers, strings, etc).
-
#language ⇒ String
rw
Returns a string or an array of strings giving the body language value as defined in [LANGUAGE-TAGS].
-
#location
rw
BodyTypeMultipartrepresents body structures of messages and message parts, when Content-Type is multipart/*. -
#media_type ⇒ "multipart"
rw
BodyTypeMultipartis only used with multipart/* media types. -
#multipart? ⇒ Boolean
readonly
BodyTypeMultipartis used for multipart MIME parts. -
#param ⇒ Hash
rw
Returns a hash that represents parameters as defined in [MIME-IMB].
-
#parts ⇒ array of BodyStructure objects
rw
Returns an array with a
BodyStructureobject for each part contained in this part. -
#subtype ⇒ String
rw
Returns the content subtype name as defined in [MIME-IMB].
Instance Method Summary
-
#media_subtype
Obsolete: use #subtype instead.
Instance Attribute Details
#disposition ⇒ ContentDisposition (rw)
Returns a ContentDisposition object giving the content
disposition.
#extension ⇒ Array (rw)
Returns extension data as an array of numbers strings, and nested arrays (of numbers, strings, etc).
# File 'lib/net/imap/response_data.rb', line 1116
class BodyTypeMultipart < Struct.new(:media_type, :subtype, :parts, :param, :disposition, :language, :location, :extension)
#language ⇒ String (rw)
Returns a string or an array of strings giving the body language value as defined in [LANGUAGE-TAGS].
# File 'lib/net/imap/response_data.rb', line 1116
class BodyTypeMultipart < Struct.new(:media_type, :subtype, :parts, :param, :disposition, :language, :location, :extension)
#location (rw)
BodyTypeMultipart represents body structures of messages and
message parts, when Content-Type is multipart/*.
# File 'lib/net/imap/response_data.rb', line 1116
class BodyTypeMultipart < Struct.new(:media_type, :subtype, :parts, :param, :disposition, :language, :location, :extension)
#media_type ⇒ "multipart" (rw)
BodyTypeMultipart is only used with multipart/* media types.
#multipart? ⇒ Boolean (readonly)
BodyTypeMultipart is used for multipart MIME parts.
# File 'lib/net/imap/response_data.rb', line 1176
def multipart? return true end
#param ⇒ Hash (rw)
Returns a hash that represents parameters as defined in [MIME-IMB].
# File 'lib/net/imap/response_data.rb', line 1116
class BodyTypeMultipart < Struct.new(:media_type, :subtype, :parts, :param, :disposition, :language, :location, :extension)
#parts ⇒ array of BodyStructure objects (rw)
Returns an array with a BodyStructure object for each part contained in
this part.
# File 'lib/net/imap/response_data.rb', line 1116
class BodyTypeMultipart < Struct.new(:media_type, :subtype, :parts, :param, :disposition, :language, :location, :extension)
#subtype ⇒ String (rw)
Returns the content subtype name as defined in [MIME-IMB].
# File 'lib/net/imap/response_data.rb', line 1116
class BodyTypeMultipart < Struct.new(:media_type, :subtype, :parts, :param, :disposition, :language, :location, :extension)
Instance Method Details
#media_subtype
# File 'lib/net/imap/response_data.rb', line 1184
def media_subtype warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1, category: :deprecated) return subtype end