module FrOData::Query::Criteria::StringFunctions

Public Instance Methods

contains(str) click to toggle source

Sets up a `contains` function criterium. @param str [to_s] @return [self]

# File lib/frodata/query/criteria/string_functions.rb, line 8
def contains(str)
  set_function_and_argument(:contains, str)
end
endswith(str) click to toggle source

Sets up a `endswith` function criterium. @param str [to_s] @return [self]

# File lib/frodata/query/criteria/string_functions.rb, line 22
def endswith(str)
  set_function_and_argument(:endswith, str)
end
startswith(str) click to toggle source

Sets up a `startswith` function criterium. @param str [to_s] @return [self]

# File lib/frodata/query/criteria/string_functions.rb, line 15
def startswith(str)
  set_function_and_argument(:startswith, str)
end
tolower() click to toggle source

Applies the `tolower` function to the property. @return [self]

# File lib/frodata/query/criteria/string_functions.rb, line 28
def tolower
  set_function_and_argument(:tolower, nil)
end
toupper() click to toggle source

Applies the `toupper` function to the property. @return [self]

# File lib/frodata/query/criteria/string_functions.rb, line 34
def toupper
  set_function_and_argument(:toupper, nil)
end