Module | CouchRest::Attributes |
In: |
lib/couchrest/attributes.rb
|
Provide JSON data hash that can be stored in the database. Will go through each attribute value and request the `as_couch_json` method on each if available, or return the value as-is.
Freeze the object‘s attributes instead of the actual document. This prevents further modifications to stored data, but does allow access to local variables useful for callbacks or cached data.
Define accessor for _attributes hash that will instantiate the model if this has not already been done.