Update Ruby sample code
Merge pull request #2599 from bootstraponline/ruby_sample

Update Ruby sample code