Class: HipTail::Event
- Inherits:
-
Object
show all
- Defined in:
- lib/hiptail/event.rb
Defined Under Namespace
Classes: RoomEnter, RoomExit, RoomMessage, RoomMessaging, RoomNotification, RoomTopicChange, RoomVisiting
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
9
10
11
|
# File 'lib/hiptail/event.rb', line 9
def initialize(params)
@raw = params.dup
end
|
Instance Attribute Details
#authority ⇒ Object
Returns the value of attribute authority.
5
6
7
|
# File 'lib/hiptail/event.rb', line 5
def authority
@authority
end
|
#oauth_client_id ⇒ String
21
22
23
|
# File 'lib/hiptail/event.rb', line 21
def oauth_client_id
@raw['oauth_client_id']
end
|
#raw ⇒ Object
Returns the value of attribute raw.
6
7
8
|
# File 'lib/hiptail/event.rb', line 6
def raw
@raw
end
|
#type ⇒ String
15
16
17
|
# File 'lib/hiptail/event.rb', line 15
def type
@raw['event']
end
|
#webhook_id ⇒ String
27
28
29
|
# File 'lib/hiptail/event.rb', line 27
def webhook_id
@raw['webhook_id']
end
|