Class: PostProxy::TappedAction

Inherits:
Model
  • Object
show all
Defined in:
lib/postproxy/types.rb

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

Instance Method Summary collapse

Methods inherited from Model

#to_h

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

#kindObject

Returns the value of attribute kind.



506
507
508
# File 'lib/postproxy/types.rb', line 506

def kind
  @kind
end

#payloadObject

Returns the value of attribute payload.



506
507
508
# File 'lib/postproxy/types.rb', line 506

def payload
  @payload
end

#titleObject

Returns the value of attribute title.



506
507
508
# File 'lib/postproxy/types.rb', line 506

def title
  @title
end