Class: VNCPostAPI::ResourceInvalid
- Inherits:
-
ActiveResource::ClientError
- Object
- ActiveResource::ClientError
- VNCPostAPI::ResourceInvalid
- Defined in:
- lib/vncpost_api/connection.rb
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/vncpost_api/connection.rb', line 3 def to_s body = JSON.parse(response.body) if body["Message"] = "Failed.".dup << " Message: #{body["Message"]}" else super end end |