class SalaryCalc::Calculator

Attributes

amount[RW]
billable_hours[RW]

Public Class Methods

new(amount, billable_hours = 8) click to toggle source
# File lib/salary_calc.rb, line 11
def initialize(amount, billable_hours = 8)
  @amount         = amount
  @billable_hours = billable_hours
end

Public Instance Methods

rounded(result) click to toggle source
# File lib/salary_calc.rb, line 20
def rounded(result)
  result.round(2)
end
to_hourly() click to toggle source
# File lib/salary_calc.rb, line 16
def to_hourly
  amount
end