couchrest_model/spec/fixtures/models/person.rb
2011-06-09 01:05:22 +02:00

12 lines
168 B
Ruby

require 'cat'
class Person < Hash
include ::CouchRest::Model::CastedModel
property :pet, Cat
property :name, [String]
def last_name
name.last
end
end