class Jabber::MUC::XMUCUserInvite
Public Class Methods
new(to=nil, reason=nil)
click to toggle source
Calls superclass method
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 10 def initialize(to=nil, reason=nil) super() set_to(to) set_reason(reason) end
Public Instance Methods
from()
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 29 def from attributes['from'].nil? ? nil : JID.new(attributes['from']) end
from=(j)
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 33 def from=(j) attributes['from'] = (j.nil? ? nil : j.to_s) end
reason()
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 42 def reason first_element_text('reason') end
reason=(s)
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 46 def reason=(s) if s replace_element_text('reason', s) else delete_elements('reason') end end
set_from(j)
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 37 def set_from(j) self.from = j self end
set_reason(s)
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 54 def set_reason(s) self.reason = s self end
set_to(j)
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 24 def set_to(j) self.to = j self end
to()
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 16 def to attributes['to'].nil? ? nil : JID.new(attributes['to']) end
to=(j)
click to toggle source
# File lib/xmpp4r/muc/x/mucuserinvite.rb, line 20 def to=(j) attributes['to'] = j.nil? ? nil : j.to_s end