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-, line 172
text → string click to toggle source

Returns the response text, not including any response code

# File net-imap-, line 178