| Module | CouchRest::Model::Properties |
| In: |
lib/couchrest/model/properties.rb
|
Provide an attribute hash ready to be sent to CouchDB but with all the nil attributes removed.
Returns the Class properties with their values
| Array: | the list of properties with their values |
Read the casted value of an attribute defined with a property.
| Object: | the casted attibutes value. |
Takes a hash as argument, and applies the values by using writer methods for each key. It doesn‘t save the document at the end. Raises a NoMethodError if the corresponding methods are missing. In case of error, no attributes are changed.
Store a casted value in the current instance of an attribute defined with a property and update dirty status
The following methods should be accessable by the Model::Base Class, but not by anything else!
Set all the attributes and return a hash with the attributes that have not been accepted.