Class: Cassanity::ArgumentGenerators::LimitClause
- Inherits:
-
Object
- Object
- Cassanity::ArgumentGenerators::LimitClause
- Defined in:
- lib/cassanity/argument_generators/limit_clause.rb
Instance Method Summary collapse
-
#call(args = {}) ⇒ Object
Internal.
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 |