Method: OData4::Query#where
- Defined in:
- lib/odata4/query.rb
#where(criteria) ⇒ Object
Adds a filter criteria to the query. For filter syntax see msdn.microsoft.com/en-us/library/gg309461.aspx Syntax:
Property Operator Value
For example:
Name eq 'Customer Service'
Operators: eq, ne, gt, ge, lt, le, and, or, not
Value
can be 'null', can use single quotes
58 59 60 61 |
# File 'lib/odata4/query.rb', line 58 def where(criteria) criteria_set[:filter] << criteria self end |