Class: BeerXML::Fermentable
- Inherits:
-
Brewser::Fermentable
- Object
- Brewser::Model
- Brewser::Fermentable
- BeerXML::Fermentable
- Includes:
- ROXML
- Defined in:
- lib/brewser/engines/beerxml.rb
Instance Method Summary collapse
Methods inherited from Brewser::Fermentable
Methods inherited from Brewser::Model
#as_beerxml, #as_brewson, auto_migrate_down!, auto_migrate_up!, auto_upgrade!, default_repository_name
Instance Method Details
#cleanup ⇒ Object
117 118 119 120 |
# File 'lib/brewser/engines/beerxml.rb', line 117 def cleanup self.amount = display_amount.present? ? display_amount.u : "#{uncast_amount} kg".u self.potential = uncast_potential.present? ? uncast_potential.to_f : 1+(46*(yield_percent/100))/1000 end |