Class: HipTail::Event::RoomTopicChange

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

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

#senderHipTail::User (readonly)

Returns:



92
93
94
95
# File 'lib/hiptail/event.rb', line 92

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

#topicString (readonly)

Returns:

  • (String)


99
100
101
# File 'lib/hiptail/event.rb', line 99

def topic
  @raw['item']['topic']
end