Sha256: f7cd9d267d1346b3ee8fc38b9c6a352bbefcb6f6359d9138e419e05c54de7712
Contents?: true
Size: 315 Bytes
Versions: 3
Compression:
Stored size: 315 Bytes
Contents
module HttpError # InternalServerError is used by all other errors to inherit from class Error < StandardError class << self attr_accessor :status attr_accessor :message end def status self.class.status end def error message || self.class.message end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
http-errors-0.1.3 | lib/http_error/error.rb |
http-errors-0.1.1 | lib/http_error/error.rb |
http-errors-0.1.0 | lib/http_error/error.rb |