Class: MicrosoftGraph::Models::EducationStudent
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::EducationStudent
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_student.rb
Class Method Summary collapse
-
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value.
Instance Method Summary collapse
-
#additional_data ⇒ Object
Gets the additionalData property value.
-
#additional_data=(value) ⇒ Object
Sets the additionalData property value.
-
#birth_date ⇒ Object
Gets the birthDate property value.
-
#birth_date=(value) ⇒ Object
Sets the birthDate property value.
-
#external_id ⇒ Object
Gets the externalId property value.
-
#external_id=(value) ⇒ Object
Sets the externalId property value.
-
#gender ⇒ Object
Gets the gender property value.
-
#gender=(value) ⇒ Object
Sets the gender property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#grade ⇒ Object
Gets the grade property value.
-
#grade=(value) ⇒ Object
Sets the grade property value.
-
#graduation_year ⇒ Object
Gets the graduationYear property value.
-
#graduation_year=(value) ⇒ Object
Sets the graduationYear property value.
-
#initialize ⇒ Object
constructor
Instantiates a new educationStudent and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#student_number ⇒ Object
Gets the studentNumber property value.
-
#student_number=(value) ⇒ Object
Sets the studentNumber property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new educationStudent and sets the default values.
68 69 70 |
# File 'lib/models/education_student.rb', line 68 def initialize() @additional_data = Hash.new end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
76 77 78 79 |
# File 'lib/models/education_student.rb', line 76 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EducationStudent.new end |
Instance Method Details
#additional_data ⇒ Object
Gets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
38 39 40 |
# File 'lib/models/education_student.rb', line 38 def additional_data return @additional_data end |
#additional_data=(value) ⇒ Object
Sets the additionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
46 47 48 |
# File 'lib/models/education_student.rb', line 46 def additional_data=(value) @additional_data = value end |
#birth_date ⇒ Object
Gets the birthDate property value. Birth date of the student.
53 54 55 |
# File 'lib/models/education_student.rb', line 53 def birth_date return @birth_date end |
#birth_date=(value) ⇒ Object
Sets the birthDate property value. Birth date of the student.
61 62 63 |
# File 'lib/models/education_student.rb', line 61 def birth_date=(value) @birth_date = value end |
#external_id ⇒ Object
Gets the externalId property value. ID of the student in the source system.
84 85 86 |
# File 'lib/models/education_student.rb', line 84 def external_id return @external_id end |
#external_id=(value) ⇒ Object
Sets the externalId property value. ID of the student in the source system.
92 93 94 |
# File 'lib/models/education_student.rb', line 92 def external_id=(value) @external_id = value end |
#gender ⇒ Object
Gets the gender property value. The possible values are: female, male, other, unknownFutureValue.
99 100 101 |
# File 'lib/models/education_student.rb', line 99 def gender return @gender end |
#gender=(value) ⇒ Object
Sets the gender property value. The possible values are: female, male, other, unknownFutureValue.
107 108 109 |
# File 'lib/models/education_student.rb', line 107 def gender=(value) @gender = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
114 115 116 117 118 119 120 121 122 123 124 |
# File 'lib/models/education_student.rb', line 114 def get_field_deserializers() return { "birthDate" => lambda {|n| @birth_date = n.get_date_value() }, "externalId" => lambda {|n| @external_id = n.get_string_value() }, "gender" => lambda {|n| @gender = n.get_enum_value(MicrosoftGraph::Models::EducationGender) }, "grade" => lambda {|n| @grade = n.get_string_value() }, "graduationYear" => lambda {|n| @graduation_year = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "studentNumber" => lambda {|n| @student_number = n.get_string_value() }, } end |
#grade ⇒ Object
Gets the grade property value. Current grade level of the student.
129 130 131 |
# File 'lib/models/education_student.rb', line 129 def grade return @grade end |
#grade=(value) ⇒ Object
Sets the grade property value. Current grade level of the student.
137 138 139 |
# File 'lib/models/education_student.rb', line 137 def grade=(value) @grade = value end |
#graduation_year ⇒ Object
Gets the graduationYear property value. Year the student is graduating from the school.
144 145 146 |
# File 'lib/models/education_student.rb', line 144 def graduation_year return @graduation_year end |
#graduation_year=(value) ⇒ Object
Sets the graduationYear property value. Year the student is graduating from the school.
152 153 154 |
# File 'lib/models/education_student.rb', line 152 def graduation_year=(value) @graduation_year = value end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
159 160 161 |
# File 'lib/models/education_student.rb', line 159 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
167 168 169 |
# File 'lib/models/education_student.rb', line 167 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
175 176 177 178 179 180 181 182 183 184 185 |
# File 'lib/models/education_student.rb', line 175 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_date_value("birthDate", @birth_date) writer.write_string_value("externalId", @external_id) writer.write_enum_value("gender", @gender) writer.write_string_value("grade", @grade) writer.write_string_value("graduationYear", @graduation_year) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("studentNumber", @student_number) writer.write_additional_data(@additional_data) end |
#student_number ⇒ Object
Gets the studentNumber property value. Student Number.
190 191 192 |
# File 'lib/models/education_student.rb', line 190 def student_number return @student_number end |
#student_number=(value) ⇒ Object
Sets the studentNumber property value. Student Number.
198 199 200 |
# File 'lib/models/education_student.rb', line 198 def student_number=(value) @student_number = value end |