Module: BrighterPlanet::Pet::Characterization

Defined in:
lib/pet/characterization.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/pet/characterization.rb', line 4

def self.included(base)
  base.characterize do
    has :species do |species|
      species.reveals :breed
    end
    has :gender
    has :weight, :range => :weight_range.to_proc, :measures => :mass
    has :acquisition # TODO andy test start year
    has :retirement
  end
end