2009-02-25 00:22:11 -08:00
|
|
|
class Person < Hash
|
|
|
|
include ::CouchRest::CastedModel
|
2009-05-28 22:42:30 -07:00
|
|
|
property :pet, :cast_as => 'Cat'
|
2009-07-21 03:17:27 +06:00
|
|
|
property :name, :type => ['String']
|
2009-02-25 00:22:11 -08:00
|
|
|
|
|
|
|
def last_name
|
|
|
|
name.last
|
|
|
|
end
|
|
|
|
end
|