Sha256: 42fb593686d4ab934391818f0000742a09d3b8f2a75a85682b3d6a389f0fdc67
Contents?: true
Size: 369 Bytes
Versions: 14
Compression:
Stored size: 369 Bytes
Contents
module MessengerClient class QuickReplies def initialize(text, quick_replies) @text = text @quick_replies = parse_qrs(quick_replies) end def to_json { text: @text, quick_replies: @quick_replies } end private def parse_qrs(quick_replies) quick_replies.map(&:to_json) end end end
Version data entries
14 entries across 14 versions & 1 rubygems