Class: Cadet::BatchInserter::Node

Inherits:
Node show all
Defined in:
lib/cadet/batch_inserter/node.rb

Instance Attribute Summary

Attributes inherited from Node

#underlying

Instance Method Summary collapse

Methods inherited from Node

#add_label, #get_property, #incoming, #initialize, #outgoing

Methods inherited from PropertyContainer

#[], #[]=

Constructor Details

This class inherits a constructor from Cadet::Node

Instance Method Details

#create_outgoing(to, type, properties = {}) ⇒ Object



5
6
7
# File 'lib/cadet/batch_inserter/node.rb', line 5

def create_outgoing(to, type, properties = {})
  @db.createRelationship(@underlying, to.underlying, DynamicRelationshipType.withName(type), properties)
end

#get_relationships(direction, type) ⇒ Object



13
14
# File 'lib/cadet/batch_inserter/node.rb', line 13

def get_relationships(direction, type)
end

#set_property(prop, val) ⇒ Object



9
10
11
# File 'lib/cadet/batch_inserter/node.rb', line 9

def set_property(prop, val)
  @db.setNodeProperty @underlying, prop, val
end