123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::BodyTypeText

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/net/imap.rb

Overview

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

Instance Attribute Summary

  • #content_id rw

    BodyTypeText represents TEXT body structures of messages.

  • #description rw

    BodyTypeText represents TEXT body structures of messages.

  • #disposition rw

    BodyTypeText represents TEXT body structures of messages.

  • #encoding rw

    BodyTypeText represents TEXT body structures of messages.

  • #extension rw

    BodyTypeText represents TEXT body structures of messages.

  • #language rw

    BodyTypeText represents TEXT body structures of messages.

  • #lines rw

    BodyTypeText represents TEXT body structures of messages.

  • #md5 rw

    BodyTypeText represents TEXT body structures of messages.

  • #media_type rw

    BodyTypeText represents TEXT body structures of messages.

  • #multipart? ⇒ Boolean readonly
  • #param rw

    BodyTypeText represents TEXT body structures of messages.

  • #size rw

    BodyTypeText represents TEXT body structures of messages.

  • #subtype rw

    BodyTypeText represents TEXT body structures of messages.

Instance Method Summary

Instance Attribute Details

#content_id (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#description (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#disposition (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#encoding (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#extension (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#language (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#lines (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#md5 (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#media_type (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#multipart?Boolean (readonly)

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2062

def multipart?
  return false
end

#param (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#size (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

#subtype (rw)

BodyTypeText represents TEXT body structures of messages.

Fields:

lines

Returns the size of the body in text lines.

And BodyTypeText has all fields of BodyTypeBasic.

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2056

class BodyTypeText < Struct.new(:media_type, :subtype,
:param, :content_id,
:description, :encoding, :size,
:lines,
:md5, :disposition, :language,
:extension)

Instance Method Details

#media_subtype

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

[ GitHub ]

  
# File 'lib/net/imap.rb', line 2069

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