returns all the attributes, the ruby class and the _id and _rev of a model as a Hash
returns a JSON representation of a model in order to store it in CouchDB
[Validate]