Class: Net::IMAP::BodyTypeMultipart

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

Overview

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

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



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

def disposition
  @disposition
end

#extensionObject

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



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

def extension
  @extension
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



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

def language
  @language
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



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

def location
  @location
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



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

def media_type
  @media_type
end

#paramObject

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



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

def param
  @param
end

#partsObject

Returns the value of attribute parts

Returns:

  • (Object)

    the current value of parts



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

def parts
  @parts
end

#subtypeObject

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



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

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.



1115
1116
1117
1118
1119
# 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

#multipart?Boolean

:call-seq: multipart? -> true

BodyTypeMultipart is used for multipart MIME parts.

Returns:

  • (Boolean)


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

def multipart?
  return true
end