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 a ResponseCode.

ResponseText is returned from TaggedResponse#data, or from UntaggedResponse#data when the response type is a “condition” (“OK”, “NO”, “BAD”, “PREAUTH”, or “BYE”).

Constant Summary collapse

EMPTY =

Used to avoid an allocation when ResponseText is empty

new(nil, "").freeze

Instance Attribute Summary collapse

Instance Attribute Details

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



167
168
169
# File 'lib/net/imap/response_data.rb', line 167

def code
  @code
end

#textObject

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



167
168
169
# File 'lib/net/imap/response_data.rb', line 167

def text
  @text
end