Sha256: 38b00375a6e204b052229576e139849ddee09ab6b67febc390199b56d3f2e78e
Contents?: true
Size: 409 Bytes
Versions: 1
Compression:
Stored size: 409 Bytes
Contents
module Otter class Error attr_reader :code def initialize(code) @code = code.to_i end def message case self.code when 400 then 'Parameter Check Failed' when 403 then 'Forbidden' when 404 then 'Action Not Supported' when 500 then 'Unexpected Internal Error' when 503 then 'Temporarily Unavailable' else 'Unkown' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
otter-rb-0.0.1 | lib/otter/error.rb |