Class: TimeStats

Inherits:
Struct
  • Object
show all
Defined in:
lib/harvest_overtime/structs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#billed_hoursObject

Returns the value of attribute billed_hours

Returns:

  • (Object)

    the current value of billed_hours



19
20
21
# File 'lib/harvest_overtime/structs.rb', line 19

def billed_hours
  @billed_hours
end

#business_hoursObject

Returns the value of attribute business_hours

Returns:

  • (Object)

    the current value of business_hours



19
20
21
# File 'lib/harvest_overtime/structs.rb', line 19

def business_hours
  @business_hours
end

Instance Method Details

#overtimeObject



20
21
22
# File 'lib/harvest_overtime/structs.rb', line 20

def overtime
  billed_hours - business_hours
end