Class: HipTail::Event::RoomVisiting
- Inherits:
-
HipTail::Event
- Object
- HipTail::Event
- HipTail::Event::RoomVisiting
- Defined in:
- lib/hiptail/event.rb
Instance Attribute Summary collapse
- #room ⇒ HipTail::Room readonly
- #sender ⇒ HipTail::User readonly
Attributes inherited from HipTail::Event
#authority, #oauth_client_id, #raw, #type, #webhook_id
Method Summary
Methods inherited from HipTail::Event
Constructor Details
This class inherits a constructor from HipTail::Event
Instance Attribute Details
#room ⇒ HipTail::Room (readonly)
114 115 116 117 |
# File 'lib/hiptail/event.rb', line 114 def room @room ||= Room.new(@raw['item']['room']) @room end |
#sender ⇒ HipTail::User (readonly)
107 108 109 110 |
# File 'lib/hiptail/event.rb', line 107 def sender @sender ||= User.create(@raw['item']['sender']) @sender end |