Module: Neoon

Defined in:
lib/neoon.rb,
lib/neoon/node.rb,
lib/neoon/error.rb,
lib/neoon/config.rb,
lib/neoon/version.rb,
lib/neoon/model/node.rb,
lib/neoon/cypher/query.rb,
lib/neoon/model/config.rb,
lib/neoon/model/schema.rb,
lib/neoon/client/request.rb,
lib/neoon/cypher/handler.rb,
lib/neoon/client/connection.rb,
lib/neoon/cypher/instance_query.rb,
lib/neoon/cypher/schema/indexes.rb,
lib/neoon/cypher/node/operations.rb,
lib/neoon/cypher/schema/constraints.rb

Defined Under Namespace

Modules: Client, Cypher, Error, Model, Node Classes: Config

Constant Summary collapse

VERSION =
'0.0.5'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.dbObject (readonly)

Returns the value of attribute db.



34
35
36
# File 'lib/neoon.rb', line 34

def db
  @db
end

Class Method Details

.client(url) ⇒ Object



36
37
38
# File 'lib/neoon.rb', line 36

def client(url)
  @db ||= Client::Connection.new url
end

.configObject



40
41
42
43
44
45
46
# File 'lib/neoon.rb', line 40

def config
  @config ||= begin
    config = Neoon::Config.new
    config.preload_models = false
    config
  end
end

.configure {|config| ... } ⇒ Object

Yields:



48
49
50
# File 'lib/neoon.rb', line 48

def configure
  yield config
end