Sha256: 570cf8a887f56564b969e33734d458dacb2a8688953a48b4ba6fde6a8033fe01

Contents?: true

Size: 1.43 KB

Versions: 6

Compression:

Stored size: 1.43 KB

Contents

# coding: utf-8
# frozen_string_literal: true

module Stealth
  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

6 entries across 6 versions & 1 rubygems

Version Path
stealth-2.0.0.beta7 lib/stealth/services/base_reply_handler.rb
stealth-2.0.0.beta6 lib/stealth/services/base_reply_handler.rb
stealth-2.0.0.beta5 lib/stealth/services/base_reply_handler.rb
stealth-2.0.0.beta4 lib/stealth/services/base_reply_handler.rb
stealth-2.0.0.beta3 lib/stealth/services/base_reply_handler.rb
stealth-2.0.0.beta2 lib/stealth/services/base_reply_handler.rb