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

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

See JEP-0045 for details

Methods

new   password   password=  

Public Class methods

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

[Source]

    # File lib/xmpp4r/muc/x/muc.rb, line 19
19:       def initialize
20:         super
21:         add_namespace('http://jabber.org/protocol/muc')
22:       end

Public Instance methods

Text content of the <password/> element

[Source]

    # File lib/xmpp4r/muc/x/muc.rb, line 26
26:       def password
27:         first_element_text('password')
28:       end

Set the password for joining a room (text content of the <password/> element)

[Source]

    # File lib/xmpp4r/muc/x/muc.rb, line 33
33:       def password=(s)
34:         if s
35:           replace_element_text('password', s)
36:         else
37:           delete_elements('password')
38:         end
39:       end

[Validate]