Method: Ubicloud::Error#params
- Defined in:
- lib/ubicloud.rb
#params ⇒ Object
A hash of parameters. This is the parsed JSON response body for the request that resulted in an error. If an invalid body is given, or the error is not related to an HTTP request, returns an empty hash.
32 33 34 35 36 |
# File 'lib/ubicloud.rb', line 32 def params @body ? JSON.parse(@body) : {} rescue {} end |