|
|
@ -6,6 +6,7 @@ class StudentShort < Person
|
|
|
|
def initialize(id:, surname_initials:, phone: nil, telegram: nil, email: nil)
|
|
|
|
def initialize(id:, surname_initials:, phone: nil, telegram: nil, email: nil)
|
|
|
|
super(id: id, phone: phone, telegram: telegram, email: email)
|
|
|
|
super(id: id, phone: phone, telegram: telegram, email: email)
|
|
|
|
@surname_initials = surname_initials
|
|
|
|
@surname_initials = surname_initials
|
|
|
|
|
|
|
|
freeze
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def self.from_student(student)
|
|
|
|
def self.from_student(student)
|
|
|
|