Sha256: dd28d64b0ac63b9c3577b96a479496cf9f09484923881707c572ce28929bd6d1

Contents?: true

Size: 280 Bytes

Versions: 12

Compression:

Stored size: 280 Bytes

Contents

module Cassanity
  module ArgumentGenerators
    class OrderClause

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

        if order.nil? || order.empty?
          ['']
        else
          [" ORDER BY #{order}"]
        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/order_clause.rb
cassanity-0.6.0.beta5 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.6.0.beta4 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.6.0.beta3 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.6.0.beta2 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.6.0.beta1 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.5.1 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.5.0 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.4.0 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.3.0 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.2.2 lib/cassanity/argument_generators/order_clause.rb
cassanity-0.2.1 lib/cassanity/argument_generators/order_clause.rb