Sha256: 359555e732d2270348608e56dcaf7eda81e85d570f324a09a231d8aa5629565b

Contents?: true

Size: 1.14 KB

Versions: 18

Compression:

Stored size: 1.14 KB

Contents

module Frodo
  class Query
    class Criteria
      module ComparisonOperators
        # Sets up equality operator.
        # @param value [to_s]
        # @return [self]
        def eq(value)
          set_operator_and_value(:eq, value)
        end

        # Sets up non-equality operator.
        # @param value [to_s]
        # @return [self]
        def ne(value)
          set_operator_and_value(:ne, value)
        end

        # Sets up greater-than operator.
        # @param value [to_s]
        # @return [self]
        def gt(value)
          set_operator_and_value(:gt, value)
        end

        # Sets up greater-than-or-equal operator.
        # @param value [to_s]
        # @return [self]
        def ge(value)
          set_operator_and_value(:ge, value)
        end

        # Sets up less-than operator.
        # @param value [to_s]
        # @return [self]
        def lt(value)
          set_operator_and_value(:lt, value)
        end

        # Sets up less-than-or-equal operator.
        # @param value [to_s]
        # @return [self]
        def le(value)
          set_operator_and_value(:le, value)
        end
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
frodo-0.12.8 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.7 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.6 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.5 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.4 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.2 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.1 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.12.0 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.11.0 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.8 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.7 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.6 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.5 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.4 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.3 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.2 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.1 lib/frodo/query/criteria/comparison_operators.rb
frodo-0.10.0 lib/frodo/query/criteria/comparison_operators.rb