Class: Net::IMAP::BodyTypeText

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

Overview

Net::IMAP::BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And Net::IMAP::BodyTypeText has all fields of Net::IMAP::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



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def content_id
  @content_id
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def description
  @description
end

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def disposition
  @disposition
end

#encodingObject

Returns the value of attribute encoding

Returns:

  • (Object)

    the current value of encoding



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def encoding
  @encoding
end

#extensionObject

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def extension
  @extension
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def language
  @language
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def lines
  @lines
end

#md5Object

Returns the value of attribute md5

Returns:

  • (Object)

    the current value of md5



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def md5
  @md5
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def media_type
  @media_type
end

#paramObject

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def param
  @param
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

def size
  @size
end

#subtypeObject

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



410
411
412
# File 'lib/net/imap/response_data.rb', line 410

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.



423
424
425
426
# File 'lib/net/imap/response_data.rb', line 423

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

#multipart?Boolean

Returns:

  • (Boolean)


416
417
418
# File 'lib/net/imap/response_data.rb', line 416

def multipart?
  return false
end