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, BodyStructure, Struct
Inherits: Struct
  • Object
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 rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #extension rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #language rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #location rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #media_type rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #multipart? ⇒ Boolean readonly

    BodyTypeMultipart is used for multipart MIME parts.

  • #param rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #parts rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

  • #subtype rw

    BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

Instance Method Summary

Instance Attribute Details

#disposition (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

#extension (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

#language (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

[ GitHub ]

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

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

#media_type (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

#multipart?Boolean (readonly)

BodyTypeMultipart is used for multipart MIME parts.

[ GitHub ]

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

def multipart?
  return true
end

#param (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

#parts (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

#subtype (rw)

BodyTypeMultipart represents body structures of messages and message parts, when Content-Type is multipart/*.

[ GitHub ]

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

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

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