Class for <x/> elements with namespace jabber.org/protocol/muc#user
See JEP-0058 for details
Get all <item/> elements
of [XMUCUserItem]
# File lib/xmpp4r/muc/x/muc.rb, line 61 def items res = [] each_element('item') { |item| res << item } res end
Retrieve the three-digit code in <x
xmlns='http://jabber.org/protocol/muc#user'>
or nil
# File lib/xmpp4r/muc/x/muc.rb, line 48 def status_code e = nil each_element('status') { |xe| e = xe } if e and e.attributes['code'].size == 3 and e.attributes['code'].to_i != 0 e.attributes['code'].to_i else nil end end