Class: PostProxy::TappedAction
Overview
Set on inbound messages created by a tap on an element you sent. Derived
from platform_data rather than stored, so it also resolves for taps ingested
before PostProxy exposed this field. kind is one of "quick_reply",
"postback", or "callback_query" — the last is Telegram, so this is not
Meta-only even though the send params are.
Instance Attribute Summary collapse
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ TappedAction
constructor
A new instance of TappedAction.
Methods inherited from Model
Constructor Details
#initialize(**attrs) ⇒ TappedAction
Returns a new instance of TappedAction.
508 509 510 511 |
# File 'lib/postproxy/types.rb', line 508 def initialize(**attrs) @title = nil super end |
Instance Attribute Details
#kind ⇒ Object
Returns the value of attribute kind.
506 507 508 |
# File 'lib/postproxy/types.rb', line 506 def kind @kind end |
#payload ⇒ Object
Returns the value of attribute payload.
506 507 508 |
# File 'lib/postproxy/types.rb', line 506 def payload @payload end |
#title ⇒ Object
Returns the value of attribute title.
506 507 508 |
# File 'lib/postproxy/types.rb', line 506 def title @title end |