Class: Net::IMAP::TaggedResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap.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. the name is one of "OK", "NO", "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



1495
1496
1497
# File 'lib/net/imap.rb', line 1495

def data
  @data
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



1495
1496
1497
# File 'lib/net/imap.rb', line 1495

def name
  @name
end

#raw_dataObject

Returns the value of attribute raw_data

Returns:

  • (Object)

    the current value of raw_data



1495
1496
1497
# File 'lib/net/imap.rb', line 1495

def raw_data
  @raw_data
end

#tagObject

Returns the value of attribute tag

Returns:

  • (Object)

    the current value of tag



1495
1496
1497
# File 'lib/net/imap.rb', line 1495

def tag
  @tag
end