123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::BodyTypeMessage

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, BodyStructure, Struct
Inherits: Struct
  • Object
Defined in: lib/net/imap/response_data.rb

Overview

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

Instance Attribute Summary

  • #body rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #content_id rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #description rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #disposition rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #encoding rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #envelope rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #extension rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #language rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #lines rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #location rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #md5 rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #media_type rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #multipart? ⇒ Boolean readonly

    BodyTypeMessage is not used for multipart MIME parts.

  • #param rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #size rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

  • #subtype rw

    BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

Instance Method Summary

Instance Attribute Details

#body (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#content_id (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#description (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#disposition (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#encoding (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#envelope (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#extension (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#language (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#lines (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#location (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#md5 (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#media_type (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#multipart?Boolean (readonly)

BodyTypeMessage is not used for multipart MIME parts.

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1030

def multipart?
  return false
end

#param (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#size (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

#subtype (rw)

BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1005

class BodyTypeMessage < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:envelope, :body, :lines,
:md5, :disposition, :language,
:location,
:extension)

Instance Method Details

#media_subtype

Obsolete: use #subtype instead. Calling this will generate a warning message to stderr, then return the value of #subtype.

[ GitHub ]

  
# File 'lib/net/imap/response_data.rb', line 1037

def media_subtype
  warn("media_subtype is obsolete, use subtype instead.\n", uplevel: 1)
  return subtype
end