Class: HipTail::Event::RoomVisiting

Inherits:
HipTail::Event show all
Defined in:
lib/hiptail/event.rb

Direct Known Subclasses

RoomEnter, RoomExit

Instance Attribute Summary collapse

Attributes inherited from HipTail::Event

#authority, #oauth_client_id, #raw, #type, #webhook_id

Method Summary

Methods inherited from HipTail::Event

#initialize, parse

Constructor Details

This class inherits a constructor from HipTail::Event

Instance Attribute Details

#roomHipTail::Room (readonly)

Returns:



114
115
116
117
# File 'lib/hiptail/event.rb', line 114

def room
  @room ||= Room.new(@raw['item']['room'])
  @room
end

#senderHipTail::User (readonly)

Returns:



107
108
109
110
# File 'lib/hiptail/event.rb', line 107

def sender
  @sender ||= User.create(@raw['item']['sender'])
  @sender
end