Class: Teacher
- Inherits:
-
Object
- Object
- Teacher
- Defined in:
- lib/magister/types/teacher.rb
Overview
This class represents the teacher object magister gives us.
Instance Method Summary collapse
-
#abrev ⇒ String
The abreviation of the teacher.
-
#abreviaton ⇒ String
The abreviation of the teacher.
-
#code ⇒ String
The abreviation of the teacher.
-
#id ⇒ Integer
The id of the teacher.
-
#initialize(rawParsed) ⇒ Teacher
constructor
Returns a new instance of Teacher.
-
#name ⇒ String
The name of the teacher.
Constructor Details
#initialize(rawParsed) ⇒ Teacher
Returns a new instance of Teacher.
10 11 12 13 14 |
# File 'lib/magister/types/teacher.rb', line 10 def initialize(rawParsed) @id = rawParsed["Id"] @name = rawParsed["Naam"] @abrev = rawParsed["Docentcode"] end |
Instance Method Details
#abrev ⇒ String
The abreviation of the teacher
31 32 33 |
# File 'lib/magister/types/teacher.rb', line 31 def abrev @abrev end |
#abreviaton ⇒ String
The abreviation of the teacher
37 38 39 |
# File 'lib/magister/types/teacher.rb', line 37 def abreviaton @abrev end |
#code ⇒ String
The abreviation of the teacher
43 44 45 |
# File 'lib/magister/types/teacher.rb', line 43 def code @abrev end |
#id ⇒ Integer
The id of the teacher
19 20 21 |
# File 'lib/magister/types/teacher.rb', line 19 def id @id end |
#name ⇒ String
The name of the teacher
25 26 27 |
# File 'lib/magister/types/teacher.rb', line 25 def name @name end |