Class: Net::IMAP::BodyTypeText

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap.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

- (Object) content_id

Returns the value of attribute content_id

Returns:

  • (Object)

    the current value of content_id



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def content_id
  @content_id
end

- (Object) description

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def description
  @description
end

- (Object) disposition

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def disposition
  @disposition
end

- (Object) encoding

Returns the value of attribute encoding

Returns:

  • (Object)

    the current value of encoding



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def encoding
  @encoding
end

- (Object) extension

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def extension
  @extension
end

- (Object) language

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def language
  @language
end

- (Object) lines

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def lines
  @lines
end

- (Object) md5

Returns the value of attribute md5

Returns:

  • (Object)

    the current value of md5



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def md5
  @md5
end

- (Object) media_type

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def media_type
  @media_type
end

- (Object) param

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def param
  @param
end

- (Object) size

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def size
  @size
end

- (Object) subtype

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



1776
1777
1778
# File 'lib/net/imap.rb', line 1776

def subtype
  @subtype
end

Instance Method Details

- (Object) media_subtype

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



1789
1790
1791
1792
1793
# File 'lib/net/imap.rb', line 1789

def media_subtype
  $stderr.printf("warning: media_subtype is obsolete.\n")
  $stderr.printf("         use subtype instead.\n")
  return subtype
end

- (Boolean) multipart?

Returns:

  • (Boolean)


1782
1783
1784
# File 'lib/net/imap.rb', line 1782

def multipart?
  return false
end