Class Jabber::Discovery::IqQueryDiscoInfo
In: lib/xmpp4r/discovery/iq/discoinfo.rb
Parent: IqQuery

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.

Methods

features   identities   identity   node   node=   set_node  

Public Instance methods

Get list of features

result:[Array] of [String]

[Source]

    # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 66
66:       def features
67:         res = []
68:         each_element('feature') { |feature|
69:           res.push(feature.var)
70:         }
71:         res
72:       end

Get list of identities

result:[Array] of [Identity]

[Source]

    # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 55
55:       def identities
56:         res = []
57:         each_element('identity') { |id|
58:           res.push(id)
59:         }
60:         res        
61:       end

Get the first identity child

result:[Identity]

[Source]

    # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 48
48:       def identity
49:         first_element('identity')
50:       end

Get the queried Service Discovery node or nil

See IqQueryDiscoItems#node for a small explanation of this.

[Source]

    # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 25
25:       def node
26:         attributes['node']
27:       end

Get the queried Service Discovery node or nil

val:[String]

[Source]

    # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 32
32:       def node=(val)
33:         attributes['node'] = val
34:       end

Get the queried Service Discovery node or nil (chaining-friendly)

val:[String]

[Source]

    # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 40
40:       def set_node(val)
41:         self.node = val
42:         self
43:       end

[Validate]