class

XMPP::Stanza::PrivateQuery

Inherits XMPP::Stanza::IQPayload / XMPP::Stanza::Extension / XMPP::Stanza::Packet / Reference / Object

PrivateQuery implements XEP-0049 - Private XML Storage.

The query carries a single arbitrary XML element whose namespace and local name identify the stored data. A get request includes an empty version of that element so the server knows what to return; a set request stores the element verbatim. The element is preserved as a generic Node so any data can round-trip.

Constructors

new(xml : String)
Source
new(node : XML::Node)
Source

Class methods

xml_name
Source

Instance methods

data
Source
data=(data : Node | Nil)
Source
name
Source
namespace
Source
to_xml(xml : XML::Builder)
Source