Sha256: d3eea34762c6b5e79e0749c129cf4cbfa20b668cfa954f84cc611948daafe4e0

Contents?: true

Size: 1.27 KB

Versions: 33

Compression:

Stored size: 1.27 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:)
        @client = client
        @options = options
      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

    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
stealth-1.1.6 lib/stealth/services/base_reply_handler.rb
stealth-1.1.5 lib/stealth/services/base_reply_handler.rb
stealth-1.1.4 lib/stealth/services/base_reply_handler.rb
stealth-1.1.3 lib/stealth/services/base_reply_handler.rb
stealth-1.1.2 lib/stealth/services/base_reply_handler.rb
stealth-1.1.1 lib/stealth/services/base_reply_handler.rb
stealth-1.1.0 lib/stealth/services/base_reply_handler.rb
stealth-1.1.0.rc3 lib/stealth/services/base_reply_handler.rb
stealth-1.1.0.rc2 lib/stealth/services/base_reply_handler.rb
stealth-1.1.0.rc1 lib/stealth/services/base_reply_handler.rb
stealth-1.0.4 lib/stealth/services/base_reply_handler.rb
stealth-1.0.3 lib/stealth/services/base_reply_handler.rb
stealth-1.0.2 lib/stealth/services/base_reply_handler.rb
stealth-1.0.1 lib/stealth/services/base_reply_handler.rb
stealth-1.0.0 lib/stealth/services/base_reply_handler.rb
stealth-1.0.0.rc1 lib/stealth/services/base_reply_handler.rb
stealth-1.0.0.pre2 lib/stealth/services/base_reply_handler.rb
stealth-1.0.0.pre1 lib/stealth/services/base_reply_handler.rb
stealth-0.10.6 lib/stealth/services/base_reply_handler.rb
stealth-0.10.5 lib/stealth/services/base_reply_handler.rb