Module CouchRest::Model::Properties
In: lib/couchrest/model/properties.rb

Methods

Classes and Modules

Module CouchRest::Model::Properties::ClassMethods

Public Instance methods

Provide an attribute hash ready to be sent to CouchDB but with all the nil attributes removed.

attributes()
attributes=(hash)

Returns the Class properties with their values

Returns

Array:the list of properties with their values

Read the casted value of an attribute defined with a property.

Returns

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

Protected Instance methods

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.

[Validate]