Class: AbstractStudent

Inherits:
Object
  • Object
show all
Defined in:
lib/model_gem_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.



3
4
5
# File 'lib/model_gem_source/student/abstract_student.rb', line 3

def firstname
  @firstname
end

#idObject

Returns the value of attribute id.



3
4
5
# File 'lib/model_gem_source/student/abstract_student.rb', line 3

def id
  @id
end

#lastnameObject

Returns the value of attribute lastname.



3
4
5
# File 'lib/model_gem_source/student/abstract_student.rb', line 3

def lastname
  @lastname
end

#patronymicObject

Returns the value of attribute patronymic.



3
4
5
# File 'lib/model_gem_source/student/abstract_student.rb', line 3

def patronymic
  @patronymic
end

Instance Method Details

#as_jsonObject



21
22
23
# File 'lib/model_gem_source/student/abstract_student.rb', line 21

def as_json 

end

#contacts_infoObject



13
14
15
# File 'lib/model_gem_source/student/abstract_student.rb', line 13

def contacts_info
    raise "method not implemented"
end

#fio_infoObject



9
10
11
# File 'lib/model_gem_source/student/abstract_student.rb', line 9

def fio_info
    raise "method not implemented"
end

#get_infoObject



5
6
7
# File 'lib/model_gem_source/student/abstract_student.rb', line 5

def get_info
    raise "method not implemented"
end

#to_sObject



17
18
19
# File 'lib/model_gem_source/student/abstract_student.rb', line 17

def to_s
    get_info
end