lib/moneta/api/http_exception.rb in moneta-api-1.8.0 vs lib/moneta/api/http_exception.rb in moneta-api-1.9.0
- old
+ new
@@ -1,18 +1,11 @@
module Moneta
module Api
class HTTPException < Exception
- attr_reader :code
+ attr_accessor :code
- def initialize(code, message)
- super(message)
-
- @code = code
- end
-
-
def inspect
- "#{ @code }: #{ message }"
+ "#{ code }: #{ message }"
end
def to_hash
{
code: code,