Ruby example.

I considered a bunch of HTTP clients for this, like [Unirest](http://unirest.io/), [REST Client](http://rubydoc.info/github/rest-client/rest-client) and [Faraday](https://github.com/lostisland/faraday). [HTTParty](http://johnnunemaker.com/httparty/) is the only one that automatically parses both JSON and XML, is compatible with Ruby 1.9 and 2, and can decode compressed responses. The only thing missing is automatically requesting for compressed responses, which I had to add manually to the example's code.