Class CouchRest::Model::Property
In: lib/couchrest/model/property.rb
Parent: Object

Methods

build   cast   cast_value   default_value   new   to_s   to_sym  

Included Modules

::CouchRest::Model::Typecast Embeddable

Attributes

alias  [R] 
allow_blank  [R] 
array  [R] 
casted  [R] 
default  [R] 
init_method  [R] 
name  [R] 
options  [R] 
read_only  [R] 
type  [R] 

Public Class methods

Attribute to define. All Properties are assumed casted unless the type is nil.

Public Instance methods

Initialize a new instance of a property‘s type ready to be used. If a proc is defined for the init method, it will be used instead of a normal call to the class.

Cast the provided value using the properties details.

Cast an individual value

[Validate]