class Jabber::MUC::XMUC

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

See JEP-0045 for details

Public Instance Methods

password() click to toggle source

Text content of the <password/> element

# File lib/xmpp4r/muc/x/muc.rb, line 20
def password
  first_element_text('password')
end
password=(s) click to toggle source

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

# File lib/xmpp4r/muc/x/muc.rb, line 27
def password=(s)
  if s
    replace_element_text('password', s)
  else
    delete_elements('password')
  end
end