Class: HipTail::Event::RoomMessaging

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

Direct Known Subclasses

RoomMessage, RoomNotification

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

#messageHipTail::Messsage (readonly)

This method is abstract.

Returns:

  • (HipTail::Messsage)


59
60
61
# File 'lib/hiptail/event.rb', line 59

def message
  raise
end

#roomHipTail::Room (readonly)

Returns:



65
66
67
68
# File 'lib/hiptail/event.rb', line 65

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