Class: Brewser::Model::Units::Time

Inherits:
Units
  • Object
show all
Defined in:
lib/brewser/model/units.rb

Overview

A time, in minutes.

Direct Known Subclasses

TimeInDays

Instance Method Summary collapse

Methods inherited from Units

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

Instance Method Details

#base_unitObject



95
96
97
# File 'lib/brewser/model/units.rb', line 95

def base_unit
  'min'
end

#kind_ofObject



92
93
94
# File 'lib/brewser/model/units.rb', line 92

def kind_of
  :time
end