summaryrefslogtreecommitdiff
path: root/lib/nickserver/request_handlers/base.rb
blob: a33e772ecd021e0c2bdfc62c6a6e4af80fb6dde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Nickserver
  module RequestHandlers
    class Base
      def self.call(request, adapter = nil)
        new(request, adapter).handle
      end

      def initialize(request, adapter)
        @request = request
        @adapter = adapter
      end

      protected

      attr_reader :request, :adapter
    end
  end
end