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_dailyObject



15
16
17
# File 'lib/salary_calc/conversions/from_hourly.rb', line 15

def to_daily
  billable_hours * amount
end

#to_monthlyObject



7
8
9
# File 'lib/salary_calc/conversions/from_hourly.rb', line 7

def to_monthly
  to_weekly * 4
end

#to_weeklyObject



11
12
13
# File 'lib/salary_calc/conversions/from_hourly.rb', line 11

def to_weekly
  to_daily * 5
end

#to_yearlyObject



3
4
5
# File 'lib/salary_calc/conversions/from_hourly.rb', line 3

def to_yearly
  to_monthly * 12
end