Class: Net::IMAP::TaggedResponse

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



78
79
80
# File 'lib/net/imap/response_data.rb', line 78

def data
  @data
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



78
79
80
# File 'lib/net/imap/response_data.rb', line 78

def name
  @name
end

#raw_dataObject

Returns the value of attribute raw_data

Returns:

  • (Object)

    the current value of raw_data



78
79
80
# File 'lib/net/imap/response_data.rb', line 78

def raw_data
  @raw_data
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



78
79
80
# File 'lib/net/imap/response_data.rb', line 78

def tag
  @tag
end