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



90
91
92
# File 'lib/brewser/model/units.rb', line 90

def base_unit
  'min'
end

#kind_ofObject



87
88
89
# File 'lib/brewser/model/units.rb', line 87

def kind_of
  :time
end