module Blather::Stanza::MUC::MUCUserBase
Constants
- MUC_USER_NAMESPACE
Public Class Methods
included(klass)
click to toggle source
# File lib/blather/stanza/muc/muc_user_base.rb, line 8 def self.included(klass) klass.extend ClassMethods end
Public Instance Methods
find_password_node()
click to toggle source
# File lib/blather/stanza/muc/muc_user_base.rb, line 47 def find_password_node muc_user.find_first 'ns:password', :ns => MUC_USER_NAMESPACE end
inherit(node)
click to toggle source
Calls superclass method
# File lib/blather/stanza/muc/muc_user_base.rb, line 18 def inherit(node) muc_user.remove super self end
muc_user()
click to toggle source
# File lib/blather/stanza/muc/muc_user_base.rb, line 32 def muc_user unless muc_user = find_first('ns:x', :ns => MUC_USER_NAMESPACE) self << (muc_user = XMPPNode.new('x', self.document)) muc_user.namespace = self.class.registered_ns end muc_user end
password()
click to toggle source
# File lib/blather/stanza/muc/muc_user_base.rb, line 24 def password find_password_node && password_node.content end
password=(var)
click to toggle source
# File lib/blather/stanza/muc/muc_user_base.rb, line 28 def password=(var) password_node.content = var end
password_node()
click to toggle source
# File lib/blather/stanza/muc/muc_user_base.rb, line 40 def password_node unless pw = find_password_node muc_user << (pw = XMPPNode.new('password', self.document)) end pw end