Class: Pacer::Transform::CypherResults::ResultsPipe

Inherits:
Pipes::RubyPipe
  • Object
show all
Includes:
Neo4j2::Algo::Wrapping
Defined in:
lib/pacer-neo4j2/algo/cypher_transform.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(route, columns, single) ⇒ ResultsPipe

Returns a new instance of ResultsPipe.



98
99
100
101
102
103
# File 'lib/pacer-neo4j2/algo/cypher_transform.rb', line 98

def initialize(route, columns, single)
  super()
  @single = single
  @graph = route.graph
  @columns = columns if columns and columns.any?
end

Instance Attribute Details

#columnsObject (readonly)

Returns the value of attribute columns.



95
96
97
# File 'lib/pacer-neo4j2/algo/cypher_transform.rb', line 95

def columns
  @columns
end

#currentObject

Returns the value of attribute current.



96
97
98
# File 'lib/pacer-neo4j2/algo/cypher_transform.rb', line 96

def current
  @current
end

#graphObject (readonly)

Returns the value of attribute graph.



95
96
97
# File 'lib/pacer-neo4j2/algo/cypher_transform.rb', line 95

def graph
  @graph
end

#singleObject (readonly)

Returns the value of attribute single.



95
96
97
# File 'lib/pacer-neo4j2/algo/cypher_transform.rb', line 95

def single
  @single
end