Class: Net::IMAP::TaggedResponse
- Inherits:
-
Struct
- Object
- Struct
- Net::IMAP::TaggedResponse
- Defined in:
- lib/net/imap/response_data.rb
Overview
Net::IMAP::TaggedResponse represents tagged responses.
The server completion result response indicates the success or failure of the operation. It is tagged with the same tag as the client command which began the operation.
response_tagged ::= tag SPACE resp_cond_state CRLF
tag ::= 1*<any ATOM_CHAR except "+">
resp_cond_state ::= ("OK" / "NO" / "BAD") SPACE resp_text
Fields:
- tag
-
Returns the tag.
- name
-
Returns the name, one of “OK”, “NO”, or “BAD”.
- data
-
Returns the data. See ((<Net::IMAP::ResponseText>)).
- raw_data
-
Returns the raw data string.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#name ⇒ Object
Returns the value of attribute name.
-
#raw_data ⇒ Object
Returns the value of attribute raw_data.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
78 79 80 |
# File 'lib/net/imap/response_data.rb', line 78 def data @data end |
#name ⇒ Object
Returns the value of attribute name
78 79 80 |
# File 'lib/net/imap/response_data.rb', line 78 def name @name end |
#raw_data ⇒ Object
Returns the value of attribute raw_data
78 79 80 |
# File 'lib/net/imap/response_data.rb', line 78 def raw_data @raw_data end |
#tag ⇒ Object
Returns the value of attribute tag
78 79 80 |
# File 'lib/net/imap/response_data.rb', line 78 def tag @tag end |