Class: Hipbot::Callbacks::RoomPresence

Inherits:
Presence show all
Defined in:
lib/hipbot/callbacks/room_presence.rb

Instance Attribute Summary collapse

Attributes inherited from Presence

#presence

Instance Method Summary collapse

Constructor Details

#initialize(room_id, user_name, presence) ⇒ RoomPresence

Returns a new instance of RoomPresence.



6
7
8
9
10
11
# File 'lib/hipbot/callbacks/room_presence.rb', line 6

def initialize room_id, user_name, presence
  self.presence  = presence
  self.user_name = user_name
  self.room_id   = room_id
  handle_room_presence
end

Instance Attribute Details

#room_idObject

Returns the value of attribute room_id.



4
5
6
# File 'lib/hipbot/callbacks/room_presence.rb', line 4

def room_id
  @room_id
end

#user_nameObject

Returns the value of attribute user_name.



4
5
6
# File 'lib/hipbot/callbacks/room_presence.rb', line 4

def user_name
  @user_name
end