Sha256: eab5fd14b2ca170a60c573fe700ec37946ed262abb61af2d88b772739d785c19

Contents?: true

Size: 634 Bytes

Versions: 6

Compression:

Stored size: 634 Bytes

Contents

module OData4
  class Query
    class Criteria
      module LambdaOperators
        # Applies the `any` lambda operator to the given property
        # @param property [to_s]
        # @return [self]
        def any(property)
          set_function_and_argument(:any, property)
        end

        # Applies the `any` lambda operator to the given property
        # @param property [to_s]
        # @return [self]
        def all(property)
          set_function_and_argument(:all, property)
        end

        private

        def lambda_operator?
          [:any, :all].include?(function)
        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/lambda_operators.rb
odata4-0.9.0 lib/odata4/query/criteria/lambda_operators.rb
odata4-0.8.2 lib/odata4/query/criteria/lambda_operators.rb
odata4-0.8.1 lib/odata4/query/criteria/lambda_operators.rb
odata4-0.8.0 lib/odata4/query/criteria/lambda_operators.rb
odata4-0.7.0 lib/odata4/query/criteria/lambda_operators.rb