Class: CrystalApi::ErrorResponse
- Inherits:
-
Object
- Object
- CrystalApi::ErrorResponse
- Defined in:
- lib/crystal_api/error_response.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
readonly
Returns the value of attribute json.
Instance Method Summary collapse
- #description ⇒ Object
- #error ⇒ Object
-
#initialize(json) ⇒ ErrorResponse
constructor
A new instance of ErrorResponse.
Constructor Details
#initialize(json) ⇒ ErrorResponse
Returns a new instance of ErrorResponse.
5 6 7 |
# File 'lib/crystal_api/error_response.rb', line 5 def initialize(json) @json = json end |
Instance Attribute Details
#json ⇒ Object (readonly)
Returns the value of attribute json.
4 5 6 |
# File 'lib/crystal_api/error_response.rb', line 4 def json @json end |
Instance Method Details
#description ⇒ Object
13 14 15 |
# File 'lib/crystal_api/error_response.rb', line 13 def description json['description'] end |
#error ⇒ Object
9 10 11 |
# File 'lib/crystal_api/error_response.rb', line 9 def error json['error'] end |