Class: BeerXML::MashSchedule

Inherits:
Brewser::MashSchedule show all
Includes:
ROXML
Defined in:
lib/brewser/engines/beerxml.rb

Instance Method Summary collapse

Methods inherited from Brewser::MashSchedule

#as_json, json_create

Methods inherited from Brewser::Model

#as_beerxml, #as_brewson, auto_migrate_down!, auto_migrate_up!, auto_upgrade!, default_repository_name

Instance Method Details

#cleanupObject



270
271
272
273
274
275
276
# File 'lib/brewser/engines/beerxml.rb', line 270

def cleanup
  mash_steps.each do |m|
    m.cleanup
  end
  self.grain_temp = display_grain_temp.present? ? display_grain_temp.u : "#{uncast_grain_temp} dC".u
  self.sparge_temp = display_sparge_temp.present? ? display_sparge_temp.u : "#{uncast_sparge_temp} dC".u
end