Class for handling Service Discovery queries, info (JEP 0030)
This <query/> may contain multiple Identity and Feature elements, describing the type and the supported namespaces of the service.
Get list of features
of [String]
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 64 def features res = [] each_element('feature') { |feature| res.push(feature.var) } res end
Get list of identities
of [Identity]
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 57 def identities get_elements('identity') end
Get the first identity child
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 50 def identity first_element('identity') end
Get the queried Service Discovery node or nil
See Jabber::Discovery::IqQueryDiscoItems#node for a small explanation of this.
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 27 def node attributes['node'] end
Set the queried Service Discovery node or nil
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 34 def node=(val) attributes['node'] = val end
Set the queried Service Discovery node or nil (chaining-friendly)
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 42 def set_node(val) self.node = val self end