AvocadoCorp/avocado-api-samples — pull request #2 by ryan-a-price (2014-08-07 20:25:57+00:00)
Title: Correcting for Net::HTTPResponse behavior

Net::HTTP#get returns an Net::HTTPResponse object, rather than the object-and-data response the current file is expecting. As a result, the process always fails because data will always be nil, regardless of the GET request’s success.