Class: Aspen::Renderers::CypherRenderer

Inherits:
AbstractRenderer show all
Defined in:
lib/aspen/renderers/cypher_renderer.rb

Instance Attribute Summary

Attributes inherited from AbstractRenderer

#environment, #statements

Instance Method Summary collapse

Methods inherited from AbstractRenderer

#initialize, #nodes, #relationships

Constructor Details

This class inherits a constructor from AbstractRenderer

Instance Method Details

#renderObject



8
9
10
11
12
13
14
# File 'lib/aspen/renderers/cypher_renderer.rb', line 8

def render
  if environment[:batch].nil? || environment[:batch]
    CypherBatchRenderer.new(statements).render
  else
    CypherBaseRenderer.new(statements).render
  end
end