Class: Compensate::ProjectSet
- Inherits:
-
Object
- Object
- Compensate::ProjectSet
- 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
-
#initialize(csv) ⇒ ProjectSet
constructor
A new instance of ProjectSet.
- #total ⇒ Object
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
#total ⇒ Object
16 17 18 19 |
# File 'lib/compensate.rb', line 16 def total build_billing_hash calculate_total end |