Class: Net::IMAP::ResponseText

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

Overview

Net::IMAP::ResponseText represents texts of responses. The text may be prefixed by the response code.

resp_text       ::= ["[" resp-text-code "]" SP] text

Fields:

code

Returns the response code. See ((<Net::IMAP::ResponseCode>)).

text

Returns the text.

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



92
93
94
# File 'lib/net/imap/response_data.rb', line 92

def code
  @code
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



92
93
94
# File 'lib/net/imap/response_data.rb', line 92

def text
  @text
end