123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::BodyTypeMultipart

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

Overview

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 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

  • #disposition rw

    BodyTypeMultipart represents multipart body structures of messages.

  • #extension rw

    BodyTypeMultipart represents multipart body structures of messages.

  • #language rw

    BodyTypeMultipart represents multipart body structures of messages.

  • #media_type rw

    BodyTypeMultipart represents multipart body structures of messages.

  • #multipart? ⇒ Boolean readonly
  • #param rw

    BodyTypeMultipart represents multipart body structures of messages.

  • #parts rw

    BodyTypeMultipart represents multipart body structures of messages.

  • #subtype rw

    BodyTypeMultipart represents multipart body structures of messages.

Instance Method Summary

Instance Attribute Details

#disposition (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
:extension)

#extension (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
:extension)

#language (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
:extension)

#media_type (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
:extension)

#multipart?Boolean (readonly)

[ GitHub ]

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

def multipart?
  return true
end

#param (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
:extension)

#parts (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
:extension)

#subtype (rw)

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 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.

[ GitHub ]

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

class BodyTypeMultipart < Struct.new(:media_type, :subtype,
:parts,
:param, :disposition, :language,
: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 512

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