class Fb::Messenger::Template::Button

Attributes

payload[RW]
title[RW]
type[RW]

Public Class Methods

new(opts = {}) click to toggle source
# File lib/fb/messenger/templates/button.rb, line 7
def initialize(opts = {})
  @type = opts[:type]
  @title = opts[:title]
  @payload = opts[:payload]
end

Public Instance Methods

template() click to toggle source
# File lib/fb/messenger/templates/button.rb, line 13
def template
  {
    type: type,
    title: title,
    payload: payload
  }
end