Class: Net::IMAP::ResponseCode

Inherits:
Struct
  • Object
show all
Defined in:
lib/net/imap/response_data.rb

Overview

Net::IMAP::ResponseCode represents response codes.

resp_text_code  ::= "ALERT" /
                    "BADCHARSET" [SP "(" astring *(SP astring) ")" ] /
                    capability_data / "PARSE" /
                    "PERMANENTFLAGS" SP "("
                    [flag_perm *(SP flag_perm)] ")" /
                    "READ-ONLY" / "READ-WRITE" / "TRYCREATE" /
                    "UIDNEXT" SP nz_number / "UIDVALIDITY" SP nz_number /
                    "UNSEEN" SP nz_number /
                    atom [SP 1*<any TEXT-CHAR except "]">]

Fields:

name

Returns the name, such as “ALERT”, “PERMANENTFLAGS”, or “UIDVALIDITY”.

data

Returns the data, if it exists.

Instance Attribute Summary collapse

Instance Attribute Details

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



113
114
115
# File 'lib/net/imap/response_data.rb', line 113

def data
  @data
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



113
114
115
# File 'lib/net/imap/response_data.rb', line 113

def name
  @name
end