Module: SalaryCalc::Conversions::FromHourly
- Included in:
- SalaryCalc::Calculator
- Defined in:
- lib/salary_calc/conversions/from_hourly.rb
Instance Method Summary collapse
Instance Method Details
#to_daily ⇒ Object
15 16 17 |
# File 'lib/salary_calc/conversions/from_hourly.rb', line 15 def to_daily billable_hours * amount end |
#to_monthly ⇒ Object
7 8 9 |
# File 'lib/salary_calc/conversions/from_hourly.rb', line 7 def to_monthly to_weekly * 4 end |
#to_weekly ⇒ Object
11 12 13 |
# File 'lib/salary_calc/conversions/from_hourly.rb', line 11 def to_weekly to_daily * 5 end |
#to_yearly ⇒ Object
3 4 5 |
# File 'lib/salary_calc/conversions/from_hourly.rb', line 3 def to_yearly to_monthly * 12 end |