Sha256: f007b65b858e1ba0c33383621701e12b6882f6a49b14f819e4d8e6ab901607e0

Contents?: true

Size: 269 Bytes

Versions: 13

Compression:

Stored size: 269 Bytes

Contents

module Moneta
  module Api
    class HTTPException < Exception
      attr_accessor :code

      def inspect
        "#{ code }: #{ message }"
      end

      def to_hash
        {
          code: code,
          message: message,
        }
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
moneta-api-1.13.0 lib/moneta/api/http_exception.rb
moneta-api-1.12.8 lib/moneta/api/http_exception.rb
moneta-api-1.12.7 lib/moneta/api/http_exception.rb
moneta-api-1.12.6 lib/moneta/api/http_exception.rb
moneta-api-1.12.5 lib/moneta/api/http_exception.rb
moneta-api-1.12.4 lib/moneta/api/http_exception.rb
moneta-api-1.12.3 lib/moneta/api/http_exception.rb
moneta-api-1.12.2 lib/moneta/api/http_exception.rb
moneta-api-1.12.1 lib/moneta/api/http_exception.rb
moneta-api-1.12.0 lib/moneta/api/http_exception.rb
moneta-api-1.11.0 lib/moneta/api/http_exception.rb
moneta-api-1.10.0 lib/moneta/api/http_exception.rb
moneta-api-1.9.0 lib/moneta/api/http_exception.rb