Class: Overtimer::Workday
- 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
-
#initialize(hours) ⇒ Workday
constructor
A new instance of Workday.
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 account_for_hours hours end |
Class Method Details
.max_overtime ⇒ Object
8 9 10 |
# File 'lib/overtimer/workweek.rb', line 8 def self.max_overtime 4 end |
.max_regular ⇒ Object
5 6 7 |
# File 'lib/overtimer/workweek.rb', line 5 def self.max_regular 8 end |