summaryrefslogtreecommitdiff
path: root/lib/server.rb
blob: 4e7cf51fb1405844615cf61e6c5fa6850ec4e78d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
class Server

  def process_http_request
    lookup.respond_with(Responder)
  end

  def lookup
    LookupFactory.lookup_for(nick)
  end

  def nick
    Nickname.new(request.address)
  end

  def request
    Request.new(params)
  end

end