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