Exception: GHI::Client::Error
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- GHI::Client::Error
- Defined in:
- lib/ghi/client.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #body ⇒ Object
- #errors ⇒ Object
-
#initialize(response) ⇒ Error
constructor
A new instance of Error.
- #message ⇒ Object
Constructor Details
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
14 15 16 |
# File 'lib/ghi/client.rb', line 14 def response @response end |
Instance Method Details
#body ⇒ Object
19 |
# File 'lib/ghi/client.rb', line 19 def body() @json end |
#errors ⇒ Object
21 |
# File 'lib/ghi/client.rb', line 21 def errors() [*body['errors']] end |
#message ⇒ Object
20 |
# File 'lib/ghi/client.rb', line 20 def () body['message'] end |