couchrest_model/spec/fixtures/more/person.rb
2009-07-21 03:17:27 +06:00

8 lines
135 B
Ruby

class Person < Hash
include ::CouchRest::CastedModel
property :name, :type => ['String']
def last_name
name.last
end
end