Class: ShnaiderCode::AbstractStudent

Inherits:
Object
  • Object
show all
Defined in:
lib/source/student/abstract_student.rb

Direct Known Subclasses

Student, StudentShort

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#firstnameObject

Returns the value of attribute firstname.



4
5
6
# File 'lib/source/student/abstract_student.rb', line 4

def firstname
  @firstname
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/source/student/abstract_student.rb', line 4

def id
  @id
end

#lastnameObject

Returns the value of attribute lastname.



4
5
6
# File 'lib/source/student/abstract_student.rb', line 4

def lastname
  @lastname
end

#patronymicObject

Returns the value of attribute patronymic.



4
5
6
# File 'lib/source/student/abstract_student.rb', line 4

def patronymic
  @patronymic
end

Instance Method Details

#as_jsonObject



22
23
24
# File 'lib/source/student/abstract_student.rb', line 22

def as_json 

end

#contacts_infoObject



14
15
16
# File 'lib/source/student/abstract_student.rb', line 14

def contacts_info
    raise "method not implemented"
end

#fio_infoObject



10
11
12
# File 'lib/source/student/abstract_student.rb', line 10

def fio_info
    raise "method not implemented"
end

#get_infoObject



6
7
8
# File 'lib/source/student/abstract_student.rb', line 6

def get_info
    raise "method not implemented"
end

#to_sObject



18
19
20
# File 'lib/source/student/abstract_student.rb', line 18

def to_s
    get_info
end