Sha256: 9e4301b36d44fd1ef05962d3049a6174ace7bc65a96717d5efcdbfce35fc3df8
Contents?: true
Size: 862 Bytes
Versions: 12
Compression:
Stored size: 862 Bytes
Contents
class Zoo include DataMapper::Resource property :id, Serial property :name, String property :description, Text property :inception, DateTime property :open, Boolean, :default => false property :size, Integer property :mission, Text, :writer => :protected has n, :animals def to_s name end end class Species include DataMapper::Resource property :id, Serial property :name, String property :classification, String, :reader => :private has n, :animals end class Animal include DataMapper::Resource property :id, Serial property :name, String belongs_to :zoo belongs_to :species belongs_to :keeper end class Employee include DataMapper::Resource property :name, String, :key => true end class Keeper < Employee has n, :animals end
Version data entries
12 entries across 12 versions & 4 rubygems