Sha256: 2e6dc9e2d32a04b6e6357e682cf06104222c115c2de9d7f39d5bbf5da4448677

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

module BrighterPlanet
  module Pet
    module Characterization
      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pet-0.0.15 lib/pet/characterization.rb
pet-0.0.14 lib/pet/characterization.rb
pet-0.0.13 lib/pet/characterization.rb
pet-0.0.12 lib/pet/characterization.rb
pet-0.0.11 lib/pet/characterization.rb