Permalink
Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (22 sloc) 938 Bytes
class Beerxml::Yeast < Beerxml::Model
include DataMapper::Resource
property :name, String, :required => true
property :type, String, :set => ['Ale', 'Lager', 'Wheat', 'Wine', 'Champagne'], :required => true
property :form, String, :set => ['Liquid', 'Dry', 'Slant', 'Culture'], :required => true
property :amount, AmountIsWeight::VolumeOrWeight, :required => true
include AmountIsWeight
property :laboratory, String
property :product_id, String
property :min_temperature, Temperature
property :max_temperature, Temperature
property :flocculation, String, :set => ['Low', 'Medium', 'High', 'Very High']
property :attenuation, Float
property :notes, String, :length => 65535
property :best_for, String
property :times_cultured, Integer
property :max_reuse, Integer
property :add_to_secondary, Boolean
# these are not used in the xml
property :id, Serial
belongs_to :recipe, :required => false
end