class Messenger::Templates::Buttons

Constants

ATTRIBUTES

Attributes

buttons[RW]
template_type[RW]
text[RW]

Public Class Methods

new(text:, buttons:) click to toggle source
# File lib/messenger/components/templates/buttons.rb, line 12
def initialize(text:, buttons:)
  @type          = 'template'
  @template_type = 'button'
  @text          = text
  @buttons       = build_elements(buttons)
end