Class: Net::IMAP::UnparsedNumericResponseData
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
self,
Struct
|
|
|
Instance Chain:
self,
Struct
|
|
| Inherits: |
Struct
|
| Defined in: | lib/net/imap/response_data.rb |
Overview
Note: This represents an intentionally unstable API. Where instances of this class are returned, future releases may return a different (incompatible) object without deprecation or warning.
UnparsedNumericResponseData represents data for unhandled
response types with a numeric prefix. See the documentation for #number.
parser = Net::IMAP::ResponseParser.new
response = parser.parse "* 123 X-UNKNOWN-TYPE can't parse this\r\n"
response => Net::IMAP::UntaggedResponse(
name: "X-UNKNOWN-TYPE",
data: Net::IMAP::UnparsedNumericData(
number: 123,
unparsed_data: "can't parse this"
),
)
See also: UnparsedData, ExtensionData, IgnoredResponse, InvalidParseData
Instance Attribute Summary
-
#number
rw
Note: This represents an intentionally unstable API.
-
#unparsed_data
rw
Note: This represents an intentionally unstable API.
Instance Attribute Details
#number (rw)
Note: This represents an intentionally unstable API. Where instances of this class are returned, future releases may return a different (incompatible) object without deprecation or warning.
UnparsedNumericResponseData represents data for unhandled
response types with a numeric prefix. See the documentation for #number.
parser = Net::IMAP::ResponseParser.new
response = parser.parse "* 123 X-UNKNOWN-TYPE can't parse this\r\n"
response => Net::IMAP::UntaggedResponse(
name: "X-UNKNOWN-TYPE",
data: Net::IMAP::UnparsedNumericData(
number: 123,
unparsed_data: "can't parse this"
),
)
See also: UnparsedData, ExtensionData, IgnoredResponse, InvalidParseData
# File 'lib/net/imap/response_data.rb', line 171
class UnparsedNumericResponseData < Struct.new(:number, :unparsed_data)
#unparsed_data (rw)
Note: This represents an intentionally unstable API. Where instances of this class are returned, future releases may return a different (incompatible) object without deprecation or warning.
UnparsedNumericResponseData represents data for unhandled
response types with a numeric prefix. See the documentation for #number.
parser = Net::IMAP::ResponseParser.new
response = parser.parse "* 123 X-UNKNOWN-TYPE can't parse this\r\n"
response => Net::IMAP::UntaggedResponse(
name: "X-UNKNOWN-TYPE",
data: Net::IMAP::UnparsedNumericData(
number: 123,
unparsed_data: "can't parse this"
),
)
See also: UnparsedData, ExtensionData, IgnoredResponse, InvalidParseData