Exception: Moneta::Api::HTTPException
- Defined in:
- lib/moneta/api/http_exception.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
4 5 6 |
# File 'lib/moneta/api/http_exception.rb', line 4 def code @code end |
Instance Method Details
#inspect ⇒ Object
6 7 8 |
# File 'lib/moneta/api/http_exception.rb', line 6 def inspect "#{ code }: #{ }" end |
#to_hash ⇒ Object
10 11 12 13 14 15 |
# File 'lib/moneta/api/http_exception.rb', line 10 def to_hash { code: code, message: , } end |