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