Class: Beerxml::Properties::Time

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

Overview

A time, in minutes.

Direct Known Subclasses

DisplayTime, TimeInDays

Instance Method Summary collapse

Methods inherited from Property

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

Instance Method Details

#base_unitObject



71
72
73
# File 'lib/beerxml/properties.rb', line 71

def base_unit
  'minutes'
end

#unit_typeObject



68
69
70
# File 'lib/beerxml/properties.rb', line 68

def unit_type
  'time'
end