You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
require_relative 'student'
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
|
student1 = Student.new(
|
|
|
|
|
surname: 'Алексеевич',
|
|
|
|
|
name: 'Артем-Дариус',
|
|
|
|
|
patronymic: 'Вебер',
|
|
|
|
|
id: 1,
|
|
|
|
|
phone: '+79891242223',
|
|
|
|
|
telegram: '@alstroemeria22',
|
|
|
|
|
email: 'no-replay@djft.ru',
|
|
|
|
|
git: 'https://git.djft.ru'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
student2 = Student.new(
|
|
|
|
|
surname: 'nil',
|
|
|
|
|
name: 'Норакет',
|
|
|
|
|
patronymic: 'nil'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
puts student1
|
|
|
|
|
puts '-' * 40
|
|
|
|
|
puts student2
|
|
|
|
|
rescue ArgumentError => e
|
|
|
|
|
puts "Err.: #{e.message}"
|
|
|
|
|
end
|
|
|
|
|
|