lib/moneta/api/http_exception.rb in moneta-api-1.13.0 vs lib/moneta/api/http_exception.rb in moneta-api-2.0.0.rc1

- old
+ new

@@ -1,18 +1,13 @@ module Moneta module Api class HTTPException < Exception - attr_accessor :code - - def inspect - "#{ code }: #{ message }" + def to_hash + { message: message } end - def to_hash - { - code: code, - message: message, - } + def inspect + "HTTPException: #{ message }" end end end end