|
|
@ -7,7 +7,7 @@ require_relative 'binary_search_tree'
|
|
|
|
|
|
|
|
|
|
|
|
def test_classes
|
|
|
|
def test_classes
|
|
|
|
person = Person.new(id: '1', git: 'https://github.com/example', phone: '+798912465', telegram: '@example_user', email: 'test@example.com')
|
|
|
|
person = Person.new(id: '1', git: 'https://github.com/example', phone: '+798912465', telegram: '@example_user', email: 'test@example.com')
|
|
|
|
puts "Person Contact Info: #{person.contact_info}"
|
|
|
|
puts "Person Contact Info: #{person.get_first_contact}"
|
|
|
|
|
|
|
|
|
|
|
|
student = Student.new(
|
|
|
|
student = Student.new(
|
|
|
|
id: '2',
|
|
|
|
id: '2',
|
|
|
@ -22,7 +22,7 @@ def test_classes
|
|
|
|
)
|
|
|
|
)
|
|
|
|
puts "Student Full Info: #{student.to_s}"
|
|
|
|
puts "Student Full Info: #{student.to_s}"
|
|
|
|
puts "Student Initials: #{student.surname_and_initials}"
|
|
|
|
puts "Student Initials: #{student.surname_and_initials}"
|
|
|
|
puts "Student Contact Info: #{student.contact_info}"
|
|
|
|
puts "Student Contact Info: #{student.get_first_contact}"
|
|
|
|
|
|
|
|
|
|
|
|
student_short = StudentShort.from_student(student)
|
|
|
|
student_short = StudentShort.from_student(student)
|
|
|
|
puts "Student Short Info: #{student_short.to_s}"
|
|
|
|
puts "Student Short Info: #{student_short.to_s}"
|
|
|
|