Class: Compensate::ProjectSet

Inherits:
Object
  • Object
show all
Defined in:
lib/compensate.rb

Constant Summary collapse

RATE_HIGH =
'85'
RATE_LOW =
'75'
TRAVEL_RATE_HIGH =
'55'
TRAVEL_RATE_LOW =
'45'

Instance Method Summary collapse

Constructor Details

#initialize(csv) ⇒ ProjectSet

Returns a new instance of ProjectSet.



12
13
14
# File 'lib/compensate.rb', line 12

def initialize(csv)
  @projects = projects_from_csv(csv)
end

Instance Method Details

#totalObject



16
17
18
19
# File 'lib/compensate.rb', line 16

def total
  build_billing_hash
  calculate_total
end