class MessengerClient::Menu
Public Class Methods
new(buttons)
click to toggle source
# File lib/messenger_client/menu.rb, line 3 def initialize(buttons) @text = text @buttons = parse_buttons(buttons) end
Public Instance Methods
to_json()
click to toggle source
# File lib/messenger_client/menu.rb, line 8 def to_json { setting_type: "call_to_actions", thread_state: "existing_thread", call_to_actions: parse_buttons(@buttons) } end