Method: Neography::NodeTraverser#initialize
- Defined in:
- lib/neography/node_traverser.rb
#initialize(from, types = nil, dir = "all") ⇒ NodeTraverser
Returns a new instance of NodeTraverser.
7 8 9 10 11 12 13 14 15 |
# File 'lib/neography/node_traverser.rb', line 7 def initialize(from, types = nil, dir = "all" ) @from = from @order = "depth first" @uniqueness = "none" @relationships = Array.new types.each do |type| @relationships << {"type" => type.to_s, "direction" => dir.to_s } end unless types.nil? end |