Sha256: c1f7a166579ee7608868a3d2e0ee49d6584231e47604a5111b2b4cf0dfa34cad

Contents?: true

Size: 1.14 KB

Versions: 6

Compression:

Stored size: 1.14 KB

Contents

module OData4
  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

6 entries across 6 versions & 1 rubygems

Version Path
odata4-0.9.1 lib/odata4/query/criteria/comparison_operators.rb
odata4-0.9.0 lib/odata4/query/criteria/comparison_operators.rb
odata4-0.8.2 lib/odata4/query/criteria/comparison_operators.rb
odata4-0.8.1 lib/odata4/query/criteria/comparison_operators.rb
odata4-0.8.0 lib/odata4/query/criteria/comparison_operators.rb
odata4-0.7.0 lib/odata4/query/criteria/comparison_operators.rb