-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner.rb
43 lines (35 loc) · 1.12 KB
/
runner.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
require './employee.rb'
require './manager.rb'
require './intern.rb'
employee_1 = Employee.new(
first_name: "Majora",
last_name: "Carter",
salary: 80000,
active: true
)
employee_2 = Employee.new(
first_name: "Danilo",
last_name: "Campos",
salary: 70000,
active: true
)
manager = Manager.new(
first_name: "Saron",
last_name: "Yitbarek",
salary: 100000,
active: true,
employees: [employee_1, employee_2]
)
intern = Intern.new(
first_name: "Jimmy",
last_name: "Olsen",
salary: 30000,
active: true
)
employee_1.print_info
employee_2.print_info
manager.print_info
intern.print_info
manager.give_all_raises
employee_1.print_info
intern.send_report