123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::ResponseCode

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/net/imap/response_data.rb

Overview

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

  • #data rw

    ResponseCode represents response codes.

  • #name rw

    ResponseCode represents response codes.

Instance Attribute Details

#data (rw)

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.

[ GitHub ]

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

class ResponseCode < Struct.new(:name, :data)

#name (rw)

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.

[ GitHub ]

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

class ResponseCode < Struct.new(:name, :data)