class Orientdb4r::RestClientNode
This class represents a single sever/node in the Distributed Multi-Master Architecture accessible via REST API and ‘rest-client’ library on the client side.
Private Instance Methods
transform_error2_response(error)
click to toggle source
Fakes an error thrown by the library into a response object with methods ‘code’ and ‘body’.
# File lib/orientdb4r/rest/restclient_node.rb, line 64 def transform_error2_response(error) response = ["#{error.message}: #{error.http_body}", error.http_code] def response.body self[0] end def response.code self[1] end response end