Class: Hipbot::Callbacks::RoomPresence
- Defined in:
- lib/hipbot/callbacks/room_presence.rb
Instance Attribute Summary collapse
-
#room_id ⇒ Object
Returns the value of attribute room_id.
-
#user_name_or_mention ⇒ Object
Returns the value of attribute user_name_or_mention.
Attributes inherited from Presence
Instance Method Summary collapse
-
#initialize(room_id, user_name_or_mention, presence, role) ⇒ RoomPresence
constructor
A new instance of RoomPresence.
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_id ⇒ Object
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_mention ⇒ Object
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 |