Ruby sample code for Capy