How to access remote device from cloud using ruby with appium

Please can any one help me to access cloud device using appium and ruby script and also suggest me for good tool to purchase.