summaryrefslogtreecommitdiff
path: root/lib/nickserver/error_response.rb
blob: 9d53630a7654ff7cc0fd8853d6529985e775b374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'nickserver/response'

module Nickserver
  class ErrorResponse < Nickserver::Response
    def initialize(message)
      @status = 500
      @message = message + "\n"
    end

    def content
      "#{status} #{message}"
    end

    protected

    attr_reader :message
  end
end