Class: Fb::Messenger::Event::Base
- Inherits:
-
Object
- Object
- Fb::Messenger::Event::Base
show all
- Defined in:
- lib/fb/messenger/events/base.rb
Overview
Instance Method Summary
collapse
Constructor Details
#initialize(event_data) ⇒ Base
Returns a new instance of Base.
6
7
8
|
# File 'lib/fb/messenger/events/base.rb', line 6
def initialize(event_data)
@event_data = event_data
end
|
Instance Method Details
#recipient_id ⇒ Object
18
19
20
|
# File 'lib/fb/messenger/events/base.rb', line 18
def recipient_id
@event_data[:recipient][:id]
end
|
#sender_id ⇒ Object
14
15
16
|
# File 'lib/fb/messenger/events/base.rb', line 14
def sender_id
@event_data[:sender][:id]
end
|
#timestamp ⇒ Object
10
11
12
|
# File 'lib/fb/messenger/events/base.rb', line 10
def timestamp
@event_data[:timestamp]
end
|