123456789_123456789_123456789_123456789_123456789_

Class: Net::IMAP::UnparsedData

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

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.

UnparsedData represents data for unknown response types or unknown extensions to response types without a well-defined extension grammar. UnparsedData represents the portion of the response which the parser has skipped over, without attempting to parse it.

parser = Net::IMAP::ResponseParser.new
response = parser.parse "* X-UNKNOWN-TYPE can't parse this\r\n"
response => Net::IMAP::UntaggedResponse(
 name: "X-UNKNOWN-TYPE",
 data: Net::IMAP::UnparsedData(unparsed_data: "can't parse this"),
)

See also: UnparsedNumericResponseData, ExtensionData, IgnoredResponse, InvalidParseData.

Instance Attribute Summary

Instance Attribute Details

#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.

UnparsedData represents data for unknown response types or unknown extensions to response types without a well-defined extension grammar. UnparsedData represents the portion of the response which the parser has skipped over, without attempting to parse it.

parser = Net::IMAP::ResponseParser.new
response = parser.parse "* X-UNKNOWN-TYPE can't parse this\r\n"
response => Net::IMAP::UntaggedResponse(
 name: "X-UNKNOWN-TYPE",
 data: Net::IMAP::UnparsedData(unparsed_data: "can't parse this"),
)

See also: UnparsedNumericResponseData, ExtensionData, IgnoredResponse, InvalidParseData.

[ GitHub ]

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

class UnparsedData < Struct.new(:unparsed_data)