class CompanyManager::Employee
Attributes
first_name[RW]
last_name[RW]
Public Class Methods
new(opts = {})
click to toggle source
# File lib/employee.rb, line 3 def initialize(opts = {}) @first_name = opts[:first_name].to_s.strip @last_name = opts[:last_name].to_s.strip end
Public Instance Methods
full_name()
click to toggle source
# File lib/employee.rb, line 9 def full_name "#{first_name} #{last_name}" end