Class Jabber::XMucUser
In: lib/xmpp4r/x/muc.rb
Parent: X

Class for <x/> elements with namespace jabber.org/protocol/muc#user

See JEP-0058 for details

Methods

new   typed_add  

Public Class methods

Initialize an <x/> element and set namespace to jabber.org/protocol/muc#user

[Source]

    # File lib/xmpp4r/x/muc.rb, line 34
34:     def initialize
35:       super
36:       add_namespace('http://jabber.org/protocol/muc#user')
37:     end

Public Instance methods

Add a children element, will be imported to [XMucUserItem] if name is "item"

[Source]

    # File lib/xmpp4r/x/muc.rb, line 42
42:     def typed_add(element)
43:       if element.kind_of?(REXML::Element) && (element.name == 'item')
44:         super(XMucUserItem::new.import(element))
45:       else
46:         super(element)
47:       end
48:     end

[Validate]