Class: Neo4j::Cypher::Limit
- Inherits:
-
Object
- Object
- Neo4j::Cypher::Limit
- Includes:
- Clause
- Defined in:
- lib/neo4j-cypher/return.rb
Overview
Can be used to limit result from a return clause
Constant Summary
Constants included from Clause
Instance Attribute Summary
Attributes included from Clause
#clause_list, #clause_type, #eval_context, #expr, #insert_order
Instance Method Summary collapse
-
#initialize(clause_list, value, context) ⇒ Limit
constructor
A new instance of Limit.
- #to_cypher ⇒ Object
Methods included from Clause
#<=>, #alias_name, #as_alias, #as_alias?, #clause_position, #create_clause_args_for, #match_value, #match_value=, #prefix, #referenced!, #referenced?, #return_value, #separator, #to_prop_string, #valid_clause?, #var_name, #var_name=
Constructor Details
#initialize(clause_list, value, context) ⇒ Limit
Returns a new instance of Limit.
23 24 25 26 |
# File 'lib/neo4j-cypher/return.rb', line 23 def initialize(clause_list, value, context) super(clause_list, :limit, context) @value = value end |
Instance Method Details
#to_cypher ⇒ Object
28 29 30 |
# File 'lib/neo4j-cypher/return.rb', line 28 def to_cypher @value end |