class Jabber::MUC::HipChat::ReceivedMessage
Public Instance Methods
body()
click to toggle source
# File lib/xmpp4r/muc/hipchat/received_message.rb, line 11 def body @stanza.body.to_s end
invite?()
click to toggle source
# File lib/xmpp4r/muc/hipchat/received_message.rb, line 21 def invite? !@stanza.x.nil? && @stanza.x.kind_of?(XMUCUser) && @stanza.x.first.kind_of?(XMUCUserInvite) end
room_name()
click to toggle source
# File lib/xmpp4r/muc/hipchat/received_message.rb, line 27 def room_name @stanza.children.last.first_element_text('name') end
topic()
click to toggle source
# File lib/xmpp4r/muc/hipchat/received_message.rb, line 7 def topic @stanza.subject.to_s end
topic?()
click to toggle source
Invite
# File lib/xmpp4r/muc/hipchat/received_message.rb, line 17 def topic? @stanza.children.first.name == "subject" end