class Orientdb4r::RestNode
This class represents a single sever/node in the Distributed Multi-Master Architecture accessible view REST API.
Constants
- SESSION_COOKIE_NAME
Name of cookie that represents a session.
Attributes
ssl[R]
user_agent[RW]
HTTP header ‘User-Agent’
Public Class Methods
new(host, port, ssl)
click to toggle source
Constructor.
Calls superclass method
Orientdb4r::Node::new
# File lib/orientdb4r/rest/node.rb, line 17 def initialize(host, port, ssl) super(host, port) raise ArgumentError, 'ssl flag cannot be blank' if blank?(ssl) @ssl = ssl end
Public Instance Methods
request(options)
click to toggle source
Sends a HTTP request to the remote server. Use following if possible:
-
session_id
-
Keep-Alive (if possible)
# File lib/orientdb4r/rest/node.rb, line 37 def request(options) raise NotImplementedError, 'this should be overridden by subclass' end