Exception: Qapi::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Qapi::Error
- Defined in:
- lib/qapi/error.rb
Instance Method Summary collapse
- #details ⇒ Object
-
#initialize(body) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
#initialize(body) ⇒ Error
Returns a new instance of Error.
3 4 5 |
# File 'lib/qapi/error.rb', line 3 def initialize(body) @body = JSON(body) end |
Instance Method Details
#details ⇒ Object
11 12 13 |
# File 'lib/qapi/error.rb', line 11 def details @body['details'] end |
#message ⇒ Object
7 8 9 |
# File 'lib/qapi/error.rb', line 7 def @body['problem'] end |