class Jabber::MUC::HipChat::KickMessage
Public Class Methods
new(my_jid)
click to toggle source
Calls superclass method
# File lib/xmpp4r/muc/hipchat/kick_message.rb, line 5 def initialize my_jid super(:set) self.from = my_jid self.add(IqQueryMUCAdmin.new) end
Public Instance Methods
add_recipient(nick)
click to toggle source
# File lib/xmpp4r/muc/hipchat/kick_message.rb, line 19 def add_recipient nick item = IqQueryMUCAdminItem.new item.nick = nick item.role = :none self.query.add(item) end
make(room_jid, recipients)
click to toggle source
# File lib/xmpp4r/muc/hipchat/kick_message.rb, line 11 def make room_jid, recipients self.to = room_jid recipients.each do |recipient| add_recipient(recipient) end end
send_to(stream)
click to toggle source
# File lib/xmpp4r/muc/hipchat/kick_message.rb, line 26 def send_to(stream) stream.send_with_id(self) end