couchrest_model/spec/fixtures/models/person.rb

12 lines
160 B
Ruby

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