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_or_mention, presence, role) ⇒ RoomPresence

Returns a new instance of RoomPresence.



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

def initialize room_id, user_name_or_mention, presence, role
  self.room_id = room_id
  self.user_name_or_mention = user_name_or_mention
  self.presence = presence

  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_name_or_mentionObject

Returns the value of attribute user_name_or_mention.



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

def user_name_or_mention
  @user_name_or_mention
end