Class: Net::IMAP::BodyTypeMessage

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

Overview

Net::IMAP::BodyTypeMessage represents MESSAGE/RFC822 body structures of messages.

Fields:

envelope

Returns a Net::IMAP::Envelope giving the envelope structure.

body

Returns an object giving the body structure.

And Net::IMAP::BodyTypeMessage has all methods of Net::IMAP::BodyTypeText.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def body
  @body
end

#content_idObject

Returns the value of attribute content_id

Returns:

  • (Object)

    the current value of content_id



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def content_id
  @content_id
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def description
  @description
end

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def disposition
  @disposition
end

#encodingObject

Returns the value of attribute encoding

Returns:

  • (Object)

    the current value of encoding



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def encoding
  @encoding
end

#envelopeObject

Returns the value of attribute envelope

Returns:

  • (Object)

    the current value of envelope



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def envelope
  @envelope
end

#extensionObject

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def extension
  @extension
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def language
  @language
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def lines
  @lines
end

#md5Object

Returns the value of attribute md5

Returns:

  • (Object)

    the current value of md5



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def md5
  @md5
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def media_type
  @media_type
end

#paramObject

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def param
  @param
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

def size
  @size
end

#subtypeObject

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



1809
1810
1811
# File 'lib/net/imap.rb', line 1809

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.



1822
1823
1824
1825
1826
# File 'lib/net/imap.rb', line 1822

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

#multipart?Boolean

Returns:

  • (Boolean)


1815
1816
1817
# File 'lib/net/imap.rb', line 1815

def multipart?
  return false
end