summaryrefslogtreecommitdiff
path: root/lib/nickserver/request_handlers/base.rb
blob: 495a6da27162089f240c8185233eebd7485896a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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