class Jabber::Discovery::IqQueryDiscoInfo
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.
Public Instance Methods
features()
click to toggle source
Get list of features
- result
- Array
-
of [String]
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 64 def features res = [] each_element('feature') { |feature| res.push(feature.var) } res end
identities()
click to toggle source
Get list of identities
- result
- Array
-
of [Identity]
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 57 def identities get_elements('identity') end
identity()
click to toggle source
Get the first identity child
- result
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 50 def identity first_element('identity') end
node()
click to toggle source
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
node=(val)
click to toggle source
Set the queried Service Discovery node or nil
- val
- String
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 34 def node=(val) attributes['node'] = val end
set_node(val)
click to toggle source
Set the queried Service Discovery node or nil (chaining-friendly)
- val
- String
# File lib/xmpp4r/discovery/iq/discoinfo.rb, line 42 def set_node(val) self.node = val self end