Class: Beerxml::Properties::Temperature

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

Overview

A temperature, in deg C.

Direct Known Subclasses

DisplayTemperature

Instance Method Summary collapse

Methods inherited from Property

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

Instance Method Details

#base_unitObject



61
62
63
# File 'lib/beerxml/properties.rb', line 61

def base_unit
  'C'
end

#unit_typeObject



58
59
60
# File 'lib/beerxml/properties.rb', line 58

def unit_type
  'temperature'
end