Class: ShnaiderCode::AbstractStudent
- Inherits:
-
Object
- Object
- ShnaiderCode::AbstractStudent
- Defined in:
- lib/source/student/abstract_student.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#firstname ⇒ Object
Returns the value of attribute firstname.
-
#id ⇒ Object
Returns the value of attribute id.
-
#lastname ⇒ Object
Returns the value of attribute lastname.
-
#patronymic ⇒ Object
Returns the value of attribute patronymic.
Instance Method Summary collapse
Instance Attribute Details
#firstname ⇒ Object
Returns the value of attribute firstname.
4 5 6 |
# File 'lib/source/student/abstract_student.rb', line 4 def firstname @firstname end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/source/student/abstract_student.rb', line 4 def id @id end |
#lastname ⇒ Object
Returns the value of attribute lastname.
4 5 6 |
# File 'lib/source/student/abstract_student.rb', line 4 def lastname @lastname end |
#patronymic ⇒ Object
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_json ⇒ Object
22 23 24 |
# File 'lib/source/student/abstract_student.rb', line 22 def as_json end |
#contacts_info ⇒ Object
14 15 16 |
# File 'lib/source/student/abstract_student.rb', line 14 def contacts_info raise "method not implemented" end |
#fio_info ⇒ Object
10 11 12 |
# File 'lib/source/student/abstract_student.rb', line 10 def fio_info raise "method not implemented" end |
#get_info ⇒ Object
6 7 8 |
# File 'lib/source/student/abstract_student.rb', line 6 def get_info raise "method not implemented" end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/source/student/abstract_student.rb', line 18 def to_s get_info end |