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”).
Constants
- EMPTY
Public Instance Methods
code → ResponseCode or nil
click to toggle source
Returns a ResponseCode, if the response contains one
# File net-imap-0.4.9.1/lib/net/imap/response_data.rb, line 172
text → string
click to toggle source
Returns the response text, not including any response code
# File net-imap-0.4.9.1/lib/net/imap/response_data.rb, line 178