class Net::IMAP::BodyTypeMultipart - net-imap: Ruby Standard Library Documentation

# class Net::IMAP::BodyTypeMultipart

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

### Public Instance Methods

disposition → ContentDisposition click to toggle source

Returns a `Net::IMAP::ContentDisposition` object giving the content disposition.

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1084

extension → array click to toggle source

Returns extension data as an array of numbers strings, and nested arrays (of numbers, strings, etc).

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1099

language → string click to toggle source

Returns a string or an array of strings giving the body language value as defined in [LANGUAGE-TAGS].

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1091

media_subtype() click to toggle source

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

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1117
    def media_subtype
      warn("media_subtype is obsolete, use subtype instead.\n",
           uplevel: 1, category: :deprecated)
      return subtype
    end

media_type → "multipart" click to toggle source

`BodyTypeMultipart` is only used with `multipart/*` media types.

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1057

multipart? → true click to toggle source

`BodyTypeMultipart` is used for multipart MIME parts.

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1109
    def multipart?
      return true
    end

param → hash click to toggle source

Returns a hash that represents parameters as defined in [MIME-IMB].

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1077

parts → array of BodyStructure objects click to toggle source

Returns an array with a `BodyStructure` object for each part contained in this part.

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1070

subtype → string click to toggle source

Returns the content subtype name as defined in [MIME-IMB].

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 1063