remiprev/her — pull request #22 by thomsbg (2012-08-09 18:52:45+00:00)
Title: Use writer methods for data, metadata, and errors to allow customization

Add accessors for :data, :metadata, and :errors to Her::Model to allow client code to override these getter / setter methods to get custom behavior.

In my case, I needed to override the `data=` method because my API sends back an empty response (204) upon a successful POST or PUT, so I ended up doing something like the following in my own class:

```ruby
def data=(params)
@data = params.merge(@data)
end
```