class

XMPP::Stanza::XData

Inherits Reference / Object

XData models a jabber:x:data form (XEP-0004) carried inside pubsub publish-options. It is intentionally minimal: a form type plus a flat list of fields, each with a var, an optional value and label.

Constructors

new(node : XML::Node)
Source

Class methods

xml_name
Source

Instance methods

field(var : String) : String | Nil

field returns the value of the field with the given var, or nil.

Source
fields
Source
to_xml(xml : XML::Builder)
Source
type
Source
type=(type : String)
Source