Class: Net::IMAP::BodyTypeMessage

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

Overview

Net::IMAP::BodyTypeMessage represents the body structures of messages and message parts, when Content-Type is message/rfc822 or message/global.

BodyTypeMessage contains all of the fields of BodyTypeBasic. See BodyTypeBasic for documentation of the following fields:

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



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def body
  @body
end

#content_idObject

Returns the value of attribute content_id

Returns:

  • (Object)

    the current value of content_id



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def content_id
  @content_id
end

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def description
  @description
end

#dispositionObject

Returns the value of attribute disposition

Returns:

  • (Object)

    the current value of disposition



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def disposition
  @disposition
end

#encodingObject

Returns the value of attribute encoding

Returns:

  • (Object)

    the current value of encoding



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def encoding
  @encoding
end

#envelopeObject

Returns the value of attribute envelope

Returns:

  • (Object)

    the current value of envelope



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def envelope
  @envelope
end

#extensionObject

Returns the value of attribute extension

Returns:

  • (Object)

    the current value of extension



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def extension
  @extension
end

#languageObject

Returns the value of attribute language

Returns:

  • (Object)

    the current value of language



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def language
  @language
end

#linesObject

Returns the value of attribute lines

Returns:

  • (Object)

    the current value of lines



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def lines
  @lines
end

#locationObject

Returns the value of attribute location

Returns:

  • (Object)

    the current value of location



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def location
  @location
end

#md5Object

Returns the value of attribute md5

Returns:

  • (Object)

    the current value of md5



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def md5
  @md5
end

#media_typeObject

Returns the value of attribute media_type

Returns:

  • (Object)

    the current value of media_type



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def media_type
  @media_type
end

#paramObject

Returns the value of attribute param

Returns:

  • (Object)

    the current value of param



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def param
  @param
end

#sizeObject

Returns the value of attribute size

Returns:

  • (Object)

    the current value of size



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

def size
  @size
end

#subtypeObject

Returns the value of attribute subtype

Returns:

  • (Object)

    the current value of subtype



980
981
982
# File 'lib/net/imap/response_data.rb', line 980

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.



1012
1013
1014
1015
# File 'lib/net/imap/response_data.rb', line 1012

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

#multipart?Boolean

:call-seq: multipart? -> false

BodyTypeMessage is not used for multipart MIME parts.

Returns:

  • (Boolean)


1005
1006
1007
# File 'lib/net/imap/response_data.rb', line 1005

def multipart?
  return false
end