Class: Jabber::Discovery::IqQueryDiscoItems

Class | Jabber::Discovery::IqQueryDiscoItems
In: | lib/xmpp4r/discovery/iq/discoitems.rb
Parent: | IqQuery

Class for handling Service Discovery queries, items (JEP 0030)

This <query/> may contain multiple Item elements, describing multiple services to be browsed by Jabber clients. These may then get further information about these items by querying IqQueryDiscoInfo and further sub-items by querying IqQueryDiscoItems.

### Methods

items node node= set_node

### Public Instance methods

items()

Get all item children

result: | Array of [Discovery::Item]

[Source]

        # File lib/xmpp4r/discovery/iq/discoitems.rb, line 51
    51:       def items
    52:         get_elements('item')
    53:       end

node()

Get the queried Service Discovery node or nil

A Service Discovery node is not a JID node, this may be a bit confusing. It‘s just to make Service Discovery browsing a bit more structured.

[Source]

        # File lib/xmpp4r/discovery/iq/discoitems.rb, line 30
    30:       def node
    31:         attributes['node']
    32:       end

node=(val)

Get the queried Service Discovery node or nil

[Source]

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

set_node(val)

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

[Source]

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

[Validate]