Sha256: 1bcb7d5d4125b07f8dfa0fd3e94011fb6515a3420d7ae2abe8511a4db616277c

Contents?: true

Size: 483 Bytes

Versions: 24

Compression:

Stored size: 483 Bytes

Contents

module Intercom
  module GenericHandlers
    class BaseHandler
      attr_reader :method_sym, :arguments, :entity

      def initialize(method_sym, arguments, entity)
        @method_sym = method_sym
        @arguments = arguments
        @entity = entity
      end

      def method_string
        method_sym.to_s
      end

      def raise_no_method_missing_handler
        raise Intercom::NoMethodMissingHandler, "Could not handle '#{method_string}'"
      end
    end

  end
end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
cogniteev-intercom-2.5.4 lib/intercom/generic_handlers/base_handler.rb
intercom-2.5.4 lib/intercom/generic_handlers/base_handler.rb
intercom-2.4.4 lib/intercom/generic_handlers/base_handler.rb
intercom-2.4.3 lib/intercom/generic_handlers/base_handler.rb
intercom-2.4.2 lib/intercom/generic_handlers/base_handler.rb
intercom-2.4.1 lib/intercom/generic_handlers/base_handler.rb
intercom-2.4.0 lib/intercom/generic_handlers/base_handler.rb
intercom-2.3.0 lib/intercom/generic_handlers/base_handler.rb
intercom-2.2.4 lib/intercom/generic_handlers/base_handler.rb
intercom-2.2.3 lib/intercom/generic_handlers/base_handler.rb
intercom-2.2.2 lib/intercom/generic_handlers/base_handler.rb
intercom-2.2.1 lib/intercom/generic_handlers/base_handler.rb
intercom-2.2.0 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.6 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.5 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.4 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.3 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.2 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.1 lib/intercom/generic_handlers/base_handler.rb
intercom-2.1.0 lib/intercom/generic_handlers/base_handler.rb