Class: Net::IMAP::BodyTypeMultipart

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap/response_data.rb

Overview

Net::IMAP::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 Net::IMAP::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 collapse

Instance Method Summary collapse

Instance Attribute Details

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



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

def disposition
  @disposition
end

#extensionObject

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



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

def extension
  @extension
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



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

def language
  @language
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



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

def media_type
  @media_type
end

#paramObject

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



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

def param
  @param
end

#partsObject

Returns the value of attribute parts

Returns:

  • (Object)

    the current value of parts



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

def parts
  @parts
end

#subtypeObject

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



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

def subtype
  @subtype
end

Instance Method Details

#media_subtypeObject

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



512
513
514
515
# 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

#multipart?Boolean

Returns:

  • (Boolean)


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

def multipart?
  return true
end