class CypherBuilder::Where
Public Class Methods
new(*parts)
click to toggle source
# File lib/cypher_builder/where.rb, line 9 def initialize(*parts) @parts = wrap(*parts) end
Public Instance Methods
as_cypher(payload:, context: )
click to toggle source
# File lib/cypher_builder/where.rb, line 13 def as_cypher(payload:, context: ) resolve(@parts, format: 'WHERE %s', separator: ' AND ', payload: payload, context: context.add(self)) end