How can we use Accessibility Identifiers with Ruby language for iOS platform

We are using xpath to identify elements in our App but decided to use Accessibility IDs as xpath changes a lot.
I could see that MobileBy.AccessibilityId is used to identify the elements using Java language binding. I couldn’t use the same with Ruby binding.

Could you please let me know, how I can use AccessibilityId with Ruby