Class: Cassanity::ArgumentGenerators::LimitClause

Inherits:
Object
  • Object
show all
Defined in:
lib/cassanity/argument_generators/limit_clause.rb

Instance Method Summary collapse

Instance Method Details

#call(args = {}) ⇒ Object

Internal



6
7
8
9
10
11
12
13
14
# File 'lib/cassanity/argument_generators/limit_clause.rb', line 6

def call(args = {})
  limit = args[:limit]

  if limit.nil?
    ['']
  else
    [" LIMIT #{limit}"]
  end
end