class Messenger::Elements::QuickReply
Attributes
content_type[RW]
image_url[RW]
payload[RW]
title[RW]
Public Class Methods
new(content_type:, title: nil, payload: nil, image_url: nil)
click to toggle source
# File lib/messenger/components/elements/quick_reply.rb, line 10 def initialize(content_type:, title: nil, payload: nil, image_url: nil) @content_type = content_type @title = title if text?(content_type) @payload = payload if text?(content_type) @image_url = image_url end
Private Instance Methods
text?(value)
click to toggle source
# File lib/messenger/components/elements/quick_reply.rb, line 19 def text?(value) value == 'text' end