Class: Beerxml::Properties::Weight
- Defined in:
- lib/beerxml/properties.rb
Overview
Represents a weight. Default scale is kilograms, since that’s what BeerXML uses. But can handle conversion/display of other units.
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from Property
#custom?, #dump, #load, #primitive?, #typecast_to_primitive
Instance Method Details
#base_unit ⇒ Object
41 42 43 |
# File 'lib/beerxml/properties.rb', line 41 def base_unit 'kilograms' end |
#unit_type ⇒ Object
38 39 40 |
# File 'lib/beerxml/properties.rb', line 38 def unit_type 'weight' end |