Update Ruby sample code