Hello,
Predicate string could be an option, below is java code for same (Sorry, not familiar with Ruby, believe same would be there)
driver.findElement(MobileBy.iOSNsPredicateString(“propertyName CONTAINS propertyValue”));
“propertyName” can be name, value etc, and “propertyValue” would be corresponding value.
predicate matcher could be CONTAINS, ENDSWITH, BEGINSWITH, LIKE and many more
more info: https://github.com/facebook/WebDriverAgent/wiki/Predicate-Queries-Construction-Rules