Class: CypherBuilder::Limit

Inherits:
Object
  • Object
show all
Includes:
Resolver
Defined in:
lib/cypher_builder/limit.rb

Instance Method Summary collapse

Methods included from Resolver

#resolve, #wrap

Constructor Details

#initialize(value) ⇒ Limit



8
9
10
# File 'lib/cypher_builder/limit.rb', line 8

def initialize(value)
  @value = value
end

Instance Method Details

#as_cypher(_) ⇒ Object



12
13
14
# File 'lib/cypher_builder/limit.rb', line 12

def as_cypher(_)
  sprintf('LIMIT %d', @value.to_i)
end