Class: NeoScout::GDB_Neo4j::Scout

Inherits:
Scout
  • Object
show all
Defined in:
lib/neoscout/gdb_neo4j.rb

Instance Attribute Summary

Attributes inherited from Scout

#iterator, #typer, #verifier

Instance Method Summary collapse

Methods inherited from Scout

#checked_edge_type?, #checked_node_type?, #count_edges, #count_nodes, #new_counts

Constructor Details

#initialize(args = {}) ⇒ Scout

Returns a new instance of Scout.



130
131
132
133
134
135
# File 'lib/neoscout/gdb_neo4j.rb', line 130

def initialize(args={})
  args[:typer] = Typer.new unless args[:typer]
  args[:verifier] = Verifier.new(args[:typer]) unless args[:verifier]
  args[:iterator] = ElementIterator.new unless args[:iterator]
  super args
end

Instance Method Details

#prep_counts(counts) ⇒ Object



137
138
139
140
141
142
# File 'lib/neoscout/gdb_neo4j.rb', line 137

def prep_counts(counts)
  # Ensure __NOTYPE__entries always have a counts array
  counts.typed_nodes[typer.nil_type]
  counts.typed_edges[typer.nil_type]
  counts
end