Class: Person
- Inherits:
-
Object
- Object
- Person
- Defined in:
- lib/magister/types/person.rb
Overview
This class describes the person object the magister api gives us this object includes all the user’s personal data like name and birthday
Instance Method Summary collapse
-
#birthDay ⇒ String
The birthday of the person.
-
#firstName ⇒ String
The first name of the person.
-
#id ⇒ Integer
The id of the person.
-
#initialize(rawParsed) ⇒ Person
constructor
Returns a new instance of Person.
-
#initials ⇒ String
The initials of the person.
-
#lastName ⇒ String
The last name of the person.
-
#preposition ⇒ String?
The preposition (thing between first & last name) of the person.
-
#useBirthname ⇒ Boolean
Wether or not to use the users birth name.
Methods included from Official
Methods included from Birth
Constructor Details
#initialize(rawParsed) ⇒ Person
Returns a new instance of Person.
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/magister/types/person.rb', line 78 def initialize(rawParsed) @id = rawParsed["Id"] @firstName = rawParsed["Roepnaam"] @preposition = rawParsed["Tussenvoegsel"] @lastName = rawParsed["Achternaam"] @officialFirstNames = rawParsed["OfficieleVoornamen"] @initials = rawParsed["Voorletters"] @officialPrepositions = rawParsed["OfficieleTussenvoegsels"] @officialLastName = rawParsed["OfficieleAchternaam"] @birthDay = rawParsed["Geboortedatum"] @birthLastName = rawParsed["GeboorteAchternaam"] @birthnamePreposition = rawParsed["GeboortenaamTussenvoegsel"] @useBirthname = rawParsed["GebruikGeboortenaam"] # probably only for tracking @externalId = rawParsed["ExterneId"] end |
Instance Method Details
#birthDay ⇒ String
The birthday of the person
129 130 131 |
# File 'lib/magister/types/person.rb', line 129 def birthDay @birthDay end |
#firstName ⇒ String
The first name of the person
105 106 107 |
# File 'lib/magister/types/person.rb', line 105 def firstName @firstName end |
#id ⇒ Integer
The id of the person
99 100 101 |
# File 'lib/magister/types/person.rb', line 99 def id @id end |
#initials ⇒ String
The initials of the person
123 124 125 |
# File 'lib/magister/types/person.rb', line 123 def initials @initials end |
#lastName ⇒ String
The last name of the person
117 118 119 |
# File 'lib/magister/types/person.rb', line 117 def lastName @lastName end |
#preposition ⇒ String?
The preposition (thing between first & last name) of the person
111 112 113 |
# File 'lib/magister/types/person.rb', line 111 def preposition @preposition end |
#useBirthname ⇒ Boolean
Wether or not to use the users birth name
135 136 137 |
# File 'lib/magister/types/person.rb', line 135 def useBirthname @useBirthname end |