class Net::IMAP::ResponseText
ResponseText represents texts of responses.
The text may be prefixed by a ResponseCode.
ResponseText is returned from TaggedResponse#data or UntaggedResponse#data for “status responses”:
-
every
TaggedResponse, name is always “OK”, “NO”, or “BAD”. -
any
UntaggedResponsewhen name is “OK”, “NO”, “BAD”, “PREAUTH”, or “BYE”.
Note that these “status responses” are confusingly not the same as the STATUS UntaggedResponse (see IMAP#status and StatusData).
Constants
- EMPTY
Public Instance Methods
Source
# File lib/net/imap/response_data.rb, line 184
Returns a ResponseCode, if the response contains one
Source
# File lib/net/imap/response_data.rb, line 190
Returns the response text, not including any response code