class Net::IMAP::ResponseText

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”).

Public Instance Methods

code → ResponseCode or nil click to toggle source

Returns a ResponseCode, if the response contains one

# File net-imap-0.3.4.1/lib/net/imap/response_data.rb, line 112
      
text → string click to toggle source

Returns the response text, not including any response code

# File net-imap-0.3.4.1/lib/net/imap/response_data.rb, line 118