Module: Orientdb4r

Defined in:
lib/orientdb4r.rb,
lib/orientdb4r/utils.rb,
lib/orientdb4r/client.rb,
lib/orientdb4r/version.rb,
lib/orientdb4r/document.rb,
lib/orientdb4r/rest/client.rb,
lib/orientdb4r/rest/oclass.rb

Overview

This module represents the entry point for using the Ruby OrientDB client.

Defined Under Namespace

Modules: Aop2, OClass, Utils Classes: Client, Document, OrientdbError, RestClient

Constant Summary collapse

VERSION_HISTORY =

Version history.

[
  ['0.1.2', '2012-06-10', 'Introduces new OClass module'],
  ['0.1.1', '2012-06-08', 'First working version (including unit tests) released at github.com'],
  ['0.1.0', '2012-06-02', 'Initial version on Ruby-1.9.3p194 and OrientDB-1.0.0']
]
VERSION =

Current version.

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.loggerObject

Returns the value of attribute logger.



31
32
33
# File 'lib/orientdb4r.rb', line 31

def logger
  @logger
end

Class Method Details

.client(options = {}) ⇒ Object

Gets a new database client or an existing for the current thread.



21
22
23
# File 'lib/orientdb4r.rb', line 21

def client options={}
  Thread.current[:orientdb_client] ||= RestClient.new options
end

.rest_proxy(url) ⇒ Object

All calls to REST API will use the proxy specified here.



27
28
29
# File 'lib/orientdb4r.rb', line 27

def rest_proxy(url)
  RestClient.proxy = url
end