class Jabber::MUC::HipChat::ReceivedPresence
Public Class Methods
new(stanza, chat_host)
click to toggle source
Calls superclass method
# File lib/xmpp4r/muc/hipchat/received_presence.rb, line 5 def initialize stanza, chat_host super stanza @is_lobby = chat_host == host end
Public Instance Methods
lobby?()
click to toggle source
# File lib/xmpp4r/muc/hipchat/received_presence.rb, line 10 def lobby? @is_lobby end
role()
click to toggle source
Room presence
# File lib/xmpp4r/muc/hipchat/received_presence.rb, line 20 def role item.affiliation if item end
type()
click to toggle source
Calls superclass method
# File lib/xmpp4r/muc/hipchat/received_presence.rb, line 14 def type super || @stanza.show || :available end
Private Instance Methods
host()
click to toggle source
# File lib/xmpp4r/muc/hipchat/received_presence.rb, line 26 def host @stanza.from.domain if @stanza.from end