Module: FrOData::Query::Criteria::StringFunctions
- Included in:
- FrOData::Query::Criteria
- Defined in:
- lib/frodata/query/criteria/string_functions.rb
Instance Method Summary collapse
-
#contains(str) ⇒ self
Sets up a ‘contains` function criterium.
-
#endswith(str) ⇒ self
Sets up a ‘endswith` function criterium.
-
#startswith(str) ⇒ self
Sets up a ‘startswith` function criterium.
-
#tolower ⇒ self
Applies the ‘tolower` function to the property.
-
#toupper ⇒ self
Applies the ‘toupper` function to the property.
Instance Method Details
#contains(str) ⇒ self
Sets up a ‘contains` function criterium.
8 9 10 |
# File 'lib/frodata/query/criteria/string_functions.rb', line 8 def contains(str) set_function_and_argument(:contains, str) end |
#endswith(str) ⇒ self
Sets up a ‘endswith` function criterium.
22 23 24 |
# File 'lib/frodata/query/criteria/string_functions.rb', line 22 def endswith(str) set_function_and_argument(:endswith, str) end |
#startswith(str) ⇒ self
Sets up a ‘startswith` function criterium.
15 16 17 |
# File 'lib/frodata/query/criteria/string_functions.rb', line 15 def startswith(str) set_function_and_argument(:startswith, str) end |
#tolower ⇒ self
Applies the ‘tolower` function to the property.
28 29 30 |
# File 'lib/frodata/query/criteria/string_functions.rb', line 28 def tolower set_function_and_argument(:tolower, nil) end |
#toupper ⇒ self
Applies the ‘toupper` function to the property.
34 35 36 |
# File 'lib/frodata/query/criteria/string_functions.rb', line 34 def toupper set_function_and_argument(:toupper, nil) end |