Module: FrOData::Query::Criteria::ComparisonOperators

Included in:
FrOData::Query::Criteria
Defined in:
lib/frodata/query/criteria/comparison_operators.rb

Instance Method Summary collapse

Instance Method Details

#eq(value) ⇒ self

Sets up equality operator.

Parameters:

Returns:

  • (self)

8
9
10
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 8

def eq(value)
  set_operator_and_value(:eq, value)
end

#ge(value) ⇒ self

Sets up greater-than-or-equal operator.

Parameters:

Returns:

  • (self)

29
30
31
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 29

def ge(value)
  set_operator_and_value(:ge, value)
end

#gt(value) ⇒ self

Sets up greater-than operator.

Parameters:

Returns:

  • (self)

22
23
24
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 22

def gt(value)
  set_operator_and_value(:gt, value)
end

#le(value) ⇒ self

Sets up less-than-or-equal operator.

Parameters:

Returns:

  • (self)

43
44
45
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 43

def le(value)
  set_operator_and_value(:le, value)
end

#lt(value) ⇒ self

Sets up less-than operator.

Parameters:

Returns:

  • (self)

36
37
38
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 36

def lt(value)
  set_operator_and_value(:lt, value)
end

#ne(value) ⇒ self

Sets up non-equality operator.

Parameters:

Returns:

  • (self)

15
16
17
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 15

def ne(value)
  set_operator_and_value(:ne, value)
end