tylerhunt/brewery_db — pull request #9 by stevenharman (2012-07-12 03:47:20+00:00)
Title: Return the data portion of the response.

As we're only after the data anyhow, just return it. In the case of an
unsuccessful request (HTTP status code is not a 2XX), then return the
"raw" body.

This makes client usage quite a bit simpler, especially when `#find`-ing a single resource. It also makes working with collections of things easier as you can just enumerate right over them like so:

```ruby
BreweryDB::Breweries.all.each do |beer|
# something interesting.
end
```