module Neo4j::NodeMixin

This Mixin is used to wrap Neo4j Java Nodes in Ruby objects.

It includes a number of mixins and forwards some methods to the raw Java node (Neo4j::Node) which includes the mixins below:

Instance Methods

Mixins:

Class Methods

Mixins:

This class also includes the class mixin WillPaginate::Finders::Base, see github.com/mislav/will_paginate/wiki

Public Instance Methods

_decl_rels_for(rel_type) click to toggle source
# File lib/neo4j/node_mixin/node_mixin.rb, line 93
def _decl_rels_for(rel_type)
  self.class._decl_rels[rel_type]
end
_java_entity() click to toggle source

same as #_java_node - so that we can use the same method for both relationships and nodes

# File lib/neo4j/node_mixin/node_mixin.rb, line 80
def _java_entity
  @_java_node
end
_java_node() click to toggle source

Returns the org.neo4j.graphdb.Node wrapped object

# File lib/neo4j/node_mixin/node_mixin.rb, line 75
def _java_node
  @_java_node
end
trigger_rules() click to toggle source

Trigger rules. You don’t normally need to call this method (except in Migration) since it will be triggered automatically by the Neo4j::Rule::Rule

# File lib/neo4j/node_mixin/node_mixin.rb, line 88
def trigger_rules
  self.class.trigger_rules(self)
end
wrapper() click to toggle source

Returns self. Implements the same method as the Neo4j::Node#wrapper - duck typing.

# File lib/neo4j/node_mixin/node_mixin.rb, line 98
def wrapper
  self
end