Module: FrOData::Query::Criteria::ComparisonOperators
- Included in:
- FrOData::Query::Criteria
- Defined in:
- lib/frodata/query/criteria/comparison_operators.rb
Instance Method Summary collapse
-
#eq(value) ⇒ self
Sets up equality operator.
-
#ge(value) ⇒ self
Sets up greater-than-or-equal operator.
-
#gt(value) ⇒ self
Sets up greater-than operator.
-
#le(value) ⇒ self
Sets up less-than-or-equal operator.
-
#lt(value) ⇒ self
Sets up less-than operator.
-
#ne(value) ⇒ self
Sets up non-equality operator.
Instance Method Details
permalink #eq(value) ⇒ self
Sets up equality operator.
8 9 10 |
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 8 def eq(value) set_operator_and_value(:eq, value) end |
permalink #ge(value) ⇒ self
Sets up greater-than-or-equal operator.
29 30 31 |
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 29 def ge(value) set_operator_and_value(:ge, value) end |
permalink #gt(value) ⇒ self
Sets up greater-than operator.
22 23 24 |
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 22 def gt(value) set_operator_and_value(:gt, value) end |
permalink #le(value) ⇒ self
Sets up less-than-or-equal operator.
43 44 45 |
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 43 def le(value) set_operator_and_value(:le, value) end |
permalink #lt(value) ⇒ self
Sets up less-than operator.
36 37 38 |
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 36 def lt(value) set_operator_and_value(:lt, value) end |
permalink #ne(value) ⇒ self
Sets up non-equality operator.
15 16 17 |
# File 'lib/frodata/query/criteria/comparison_operators.rb', line 15 def ne(value) set_operator_and_value(:ne, value) end |