Class: Overtimer::Workday

Inherits:
Workbase show all
Defined in:
lib/overtimer/workweek.rb

Instance Attribute Summary

Attributes inherited from Workbase

#doubletime, #overtime, #regular, #total

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Workbase

#account_for_hours, #max_overtime, #max_regular

Constructor Details

#initialize(hours) ⇒ Workday

Returns a new instance of Workday.



11
12
13
14
# File 'lib/overtimer/workweek.rb', line 11

def initialize hours
  super
   hours
end

Class Method Details

.max_overtimeObject



8
9
10
# File 'lib/overtimer/workweek.rb', line 8

def self.max_overtime
  4
end

.max_regularObject



5
6
7
# File 'lib/overtimer/workweek.rb', line 5

def self.max_regular
  8
end