Class: Net::IMAP::BodyTypeExtension

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

Overview

Obsolete

BodyTypeExtension is not used and will be removed in an upcoming release.

BodyTypeExtension was (incorrectly) used for message/* parts (besides message/rfc822, which correctly uses BodyTypeMessage).

Net::IMAP now (correctly) parses all message types (other than message/rfc822 or message/global) as BodyTypeBasic.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#content_idObject

Returns the value of attribute content_id

Returns:

  • (Object)

    the current value of content_id



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def content_id
  @content_id
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def description
  @description
end

#encodingObject

Returns the value of attribute encoding

Returns:

  • (Object)

    the current value of encoding



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def encoding
  @encoding
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def media_type
  @media_type
end

#paramsObject

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def params
  @params
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def size
  @size
end

#subtypeObject

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



1199
1200
1201
# File 'lib/net/imap/response_data.rb', line 1199

def subtype
  @subtype
end

Instance Method Details

#multipart?Boolean

Returns:

  • (Boolean)


1202
1203
1204
# File 'lib/net/imap/response_data.rb', line 1202

def multipart?
  return false
end