class FamilyappSdk::Components::Button

Attributes

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

Public Class Methods

new(type:, title:, payload: nil, web_url: nil) click to toggle source
# File lib/familyapp_sdk/components/button.rb, line 6
def initialize(type:, title:, payload: nil, web_url: nil)
  @button_type  = type
  @title = title
  @payload = payload
  @web_url = web_url
end

Public Instance Methods

build() click to toggle source
# File lib/familyapp_sdk/components/button.rb, line 13
def build
  instance_values.delete_if { |_attribute, value| value.nil? }
end