Class: Jabber::Discovery::IqQueryDiscoInfo

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

features()

Get list of features

result: | [Array] of [String]

[Source]

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

identities()

Get list of identities

result: | [Array] of [Identity]

[Source]

        # File lib/xmpp4r/discovery/iq/discoinfo.rb, line 57
    57:       def identities
    58:         get_elements('identity')
    59:       end

identity()

Get the first identity child

result: | [Identity]

[Source]

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

node()

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 27
    27:       def node
    28:         attributes['node']
    29:       end

node=(val)

Get the queried Service Discovery node or nil

val: | [String]

[Source]

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

set_node(val)

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

val: | [String]

[Source]

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

[Validate]