class XMPP::Stanza::XData

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(node : XML::Node) #

[View source]

Class Method Detail

def self.xml_name : String #

[View source]

Instance Method Detail

def field(var : String) : String | Nil #

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


[View source]
def fields : Array(XDataField) #

[View source]
def to_xml(xml : XML::Builder) #

[View source]
def type : String #

[View source]
def type=(type : String) #

[View source]