[API] Ruby wrapper improvements

- Completed the Ruby sample code for all the main actions supported by
  the API.
- Refactored the Ruby wrapper library to make it DRYer by adding common
  methods that are shared across all objects.
- Added object oriented support for all the main API methods.