Class: Beerxml::Properties::Volume

Inherits:
Property
  • Object
show all
Defined in:
lib/beerxml/properties.rb

Overview

A volume, in liters.

Direct Known Subclasses

DisplayVolume

Instance Method Summary collapse

Methods inherited from Property

#custom?, #dump, #load, #primitive?, #typecast_to_primitive

Instance Method Details

#base_unitObject



51
52
53
# File 'lib/beerxml/properties.rb', line 51

def base_unit
  'liters'
end

#unit_typeObject



48
49
50
# File 'lib/beerxml/properties.rb', line 48

def unit_type
  'volume'
end