How to handle dynamic elements with ruby

Can any body help me to handle dynamic values , In our application developer are generating dynamic number while creating room.
How can we handle every time.

Your developer also can define accessibilityidentifier dynamically for iOS with some rules for the identifier.
For android, you can use https://developer.android.com/reference/android/view/View.html#setTag(int,%20java.lang.Object) with espresso-driver as same as iOS.
(Do you mean this kind of questions?)