Class: VNCPostAPI::ResourceInvalid

Inherits:
ActiveResource::ClientError
  • Object
show all
Defined in:
lib/vncpost_api/connection.rb

Instance Method Summary collapse

Instance Method Details

#to_sObject



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"]
    message = "Failed.".dup
    message << " Message: #{body["Message"]}"
    message
  else
    super
  end
end