class
XMPP::Stanza::XData
- XMPP::Stanza::XData
- Reference
- Object
Overview
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.
Defined in:
xmpp/stanza/pubsub.crConstructors
Class Method Summary
Instance Method Summary
-
#field(var : String) : String | Nil
field returns the value of the field with the given var, or nil.
- #fields : Array(XDataField)
- #to_xml(xml : XML::Builder)
- #type : String
- #type=(type : String)
Constructor Detail
Class Method Detail
Instance Method Detail
def field(var : String) : String | Nil
#
field returns the value of the field with the given var, or nil.