Class: InstagramConnect::Ingest::Handlers::MessagingPostbacks
- Defined in:
- lib/instagram_connect/ingest/handlers/messaging_postbacks.rb
Overview
A tap on an ice breaker, a persistent-menu item, or a template button. Postbacks carry no message of their own, so there is nothing to persist yet — the host callback is the whole point.
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from InstagramConnect::Ingest::Handlers::Base
Class Method Details
.dedupe_key(event) ⇒ Object
8 9 10 |
# File 'lib/instagram_connect/ingest/handlers/messaging_postbacks.rb', line 8 def self.dedupe_key(event) event.dig("postback", "mid").presence end |
Instance Method Details
#call ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/instagram_connect/ingest/handlers/messaging_postbacks.rb', line 12 def call notify(config.on_postback, { account_id: account.id, sender_id: event.dig("sender", "id"), payload: event.dig("postback", "payload"), title: event.dig("postback", "title") }) nil end |