summaryrefslogtreecommitdiff
path: root/lib/nickserver/hkp/response.rb
blob: c52e25fff3ffb1b53e17d22bc15a7f3c35db6a47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
module Nickserver::Hkp
  class Response

    attr_reader :status, :content

    def initialize(uid, key)
      @content = format_response(address: uid, openpgp: key)
      @status = 200
    end

    protected

    def format_response(map)
      map.to_json
    end

  end
end