Class: CypherBuilder::And
- Inherits:
-
Object
- Object
- CypherBuilder::And
- Includes:
- Resolver
- Defined in:
- lib/cypher_builder/and.rb
Instance Method Summary collapse
- #as_cypher(payload:, context:) ⇒ Object
-
#initialize(*parts) ⇒ And
constructor
A new instance of And.
Methods included from Resolver
Constructor Details
#initialize(*parts) ⇒ And
Returns a new instance of And.
9 10 11 |
# File 'lib/cypher_builder/and.rb', line 9 def initialize(*parts) @parts = wrap(*parts) end |
Instance Method Details
#as_cypher(payload:, context:) ⇒ Object
13 14 15 |
# File 'lib/cypher_builder/and.rb', line 13 def as_cypher(payload:, context: ) resolve(@parts, separator: ' AND ', payload: payload, context: context.add(self)) end |