Class: Net::IMAP::BodyTypeBasic
| 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
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
- #content_id ⇒ String rw
- #description ⇒ String rw
-
#disposition ⇒ ContentDisposition
rw
Returns a
ContentDispositionobject giving the content disposition, as defined by [DISPOSITION]. - #encoding ⇒ String rw
-
#extension ⇒ String
rw
Returns extension data.
-
#language ⇒ String
rw
Returns a string or an array of strings giving the body language value as defined in [LANGUAGE-TAGS].
-
#location
rw
BodyTypeBasicrepresents basic body structures of messages and message parts, unless they have a Content-Type that is handled byBodyTypeText,BodyTypeMessage, orBodyTypeMultipart. -
#md5 ⇒ String
rw
Returns a string giving the body MD5 value as defined in [MD5].
-
#media_type ⇒ String
rw
The top-level media type as defined in [MIME-IMB].
-
#multipart? ⇒ Boolean
readonly
BodyTypeBasicis not used for multipart MIME parts. -
#param ⇒ String
rw
Returns a hash that represents parameters as defined in [MIME-IMB].
-
#size ⇒ Integer
rw
Returns a number giving the size of the body in octets.
-
#subtype ⇒ String
rw
The media subtype name as defined in [MIME-IMB].
Instance Method Summary
Instance Attribute Details
#content_id ⇒ String (rw)
[ GitHub ]
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#description ⇒ String (rw)
[ GitHub ]
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#disposition ⇒ ContentDisposition (rw)
Returns a ContentDisposition object giving the content
disposition, as defined by
[DISPOSITION].
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#encoding ⇒ String (rw)
[ GitHub ]
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#extension ⇒ String (rw)
Returns extension data. The BODYSTRUCTURE fetch attribute
contains extension data, but BODY does not.
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :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 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#location (rw)
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.
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#md5 ⇒ String (rw)
Returns a string giving the body MD5 value as defined in [MD5].
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#media_type ⇒ String (rw)
The top-level media type as defined in [MIME-IMB].
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#multipart? ⇒ Boolean (readonly)
BodyTypeBasic is not used for multipart MIME parts.
# File 'lib/net/imap/response_data.rb', line 996
def multipart? return false end
#param ⇒ String (rw)
Returns a hash that represents parameters as defined in [MIME-IMB].
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#size ⇒ Integer (rw)
Returns a number giving the size of the body in octets.
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
#subtype ⇒ String (rw)
The media subtype name as defined in [MIME-IMB].
# File 'lib/net/imap/response_data.rb', line 894
class BodyTypeBasic < Struct.new(:media_type, :subtype, :param, :content_id, :description, :encoding, :size, :md5, :disposition, :language, :location, :extension)
Instance Method Details
#media_subtype ⇒ subtype
# File 'lib/net/imap/response_data.rb', line 1010
def media_subtype warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1, category: :deprecated) return subtype end