Class: Jabber::MUC::XMUCUserItem

Inherits:
UserItem show all
Defined in:
lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuseritem.rb

Instance Method Summary collapse

Methods inherited from UserItem

#actors, #actors=, #affiliation, #affiliation=, #jid, #jid=, #nick, #nick=, #reason, #reason=, #role, #role=, #set_actors, #set_affiliation, #set_jid, #set_nick, #set_reason, #set_role

Methods inherited from XMPPElement

class_for_name_xmlns, #clone, force_xmlns, force_xmlns?, import, name_xmlns, name_xmlns_for_class, #parent=, #set_xml_lang, #typed_add, #xml_lang, #xml_lang=

Methods inherited from REXML::Element

#==, #delete_elements, #first_element, #first_element_text, #import, import, #replace_element_text, #typed_add

Constructor Details

#initialize(affiliation = nil, role = nil, jid = nil) ⇒ XMUCUserItem

Returns a new instance of XMUCUserItem.



12
13
14
15
16
17
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuseritem.rb', line 12

def initialize(affiliation=nil, role=nil, jid=nil)
  super()
  set_affiliation(affiliation)
  set_role(role)
  set_jid(jid)
end

Instance Method Details

#continueObject



19
20
21
22
23
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuseritem.rb', line 19

def continue
  c = nil
  each_element('continue') { |xe| c = xe }
  c.nil?
end

#continue=(c) ⇒ Object



25
26
27
28
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuseritem.rb', line 25

def continue=(c)
  delete_elements('continue')
  add_element('continue') if c
end

#set_continue(c) ⇒ Object



30
31
32
33
# File 'lib/gems/xmpp4r-0.4/lib/xmpp4r/muc/x/mucuseritem.rb', line 30

def set_continue(c)
  self.continue = c
  self
end