Class: UI::FBButtonTemplate
- Inherits:
-
BaseUiElement
- Object
- BaseUiElement
- UI::FBButtonTemplate
- Defined in:
- lib/ui/fb_button_template.rb
Overview
BUTTON TEMPLATE ############################# developers.facebook.com/docs/messenger-platform/send-api-reference/button-template
Instance Method Summary collapse
-
#initialize(text, buttons) ⇒ FBButtonTemplate
constructor
A new instance of FBButtonTemplate.
Methods inherited from BaseUiElement
Constructor Details
#initialize(text, buttons) ⇒ FBButtonTemplate
Returns a new instance of FBButtonTemplate.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ui/fb_button_template.rb', line 7 def initialize(text, ) @template = { recipient: { id: nil }, message: { attachment: { type: 'template', payload: { template_type: 'button', text: text, buttons: () } } } } end |