Class: Facebook::Messenger::Incoming::Postback
- Inherits:
-
Object
- Object
- Facebook::Messenger::Incoming::Postback
- Includes:
- Common
- Defined in:
- lib/facebook/messenger/incoming/postback.rb
Overview
The Postback class represents an incoming Facebook Messenger
postback events.
Instance Attribute Summary
Attributes included from Common
Instance Method Summary collapse
-
#payload ⇒ Object
Return String of developer defined payload.
-
#referral ⇒ Object
Return hash containing the referral information of user.
Methods included from Common
#access_token, #initialize, #mark_seen, #prior_message, #recipient, #reply, #sender, #sent_at, #typing_off, #typing_on
Instance Method Details
#payload ⇒ Object
Return String of developer defined payload.
11 12 13 |
# File 'lib/facebook/messenger/incoming/postback.rb', line 11 def payload @messaging['postback']['payload'] end |