Sha256: eb2399aad12ffad936fb696ef6b53a47ececa0dfa4d3b0095a121ce3329bdfcd
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# frozen_string_literal: true module Xip module Services class BaseReplyHandler attr_reader :recipient_id, :reply def initialize(recipient_id:, reply:) @recipient_id = recipient_id @reply = reply end def text reply_format_not_supported(format: 'text') end def image reply_format_not_supported(format: 'image') end def audio reply_format_not_supported(format: 'audio') end def video reply_format_not_supported(format: 'video') end def file reply_format_not_supported(format: 'file') end def cards reply_format_not_supported(format: 'cards') end def list reply_format_not_supported(format: 'list') end def receipt reply_format_not_supported(format: 'receipt') end def mark_seen reply_format_not_supported(format: 'mark_seen') end def enable_typing_indicator reply_format_not_supported(format: 'enable_typing_indicator') end def disable_typing_indicator reply_format_not_supported(format: 'disable_typing_indicator') end def delay reply_format_not_supported(format: 'delay') end def speech reply_format_not_supported(format: 'speech') end def ssml reply_format_not_supported(format: 'ssml') end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
xip-2.0.0.beta2 | lib/xip/services/base_reply_handler.rb |