class Net::IMAP::ResponseText - net-imap: Ruby Standard Library Documentation

# 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.5.4/lib/net/imap/response_data.rb, line 174

text → string click to toggle source

Returns the response text, not including any response code

    # File net-imap-0.5.4/lib/net/imap/response_data.rb, line 180