Sha256: 4b2bd14eb24f5effdb12b19732e303bf06a8f60671cd76cb6dbe20ec5f0a2e3f

Contents?: true

Size: 261 Bytes

Versions: 12

Compression:

Stored size: 261 Bytes

Contents

module Cassanity
  module ArgumentGenerators
    class LimitClause

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cassanity-0.6.0 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.6.0.beta5 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.6.0.beta4 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.6.0.beta3 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.6.0.beta2 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.6.0.beta1 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.5.1 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.5.0 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.4.0 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.3.0 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.2.2 lib/cassanity/argument_generators/limit_clause.rb
cassanity-0.2.1 lib/cassanity/argument_generators/limit_clause.rb