Class: MicrosoftGraph::Models::EducationCourse
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::EducationCourse
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_course.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.
-
#course_number ⇒ Object
Gets the courseNumber property value.
-
#course_number=(value) ⇒ Object
Sets the courseNumber property value.
-
#description ⇒ Object
Gets the description property value.
-
#description=(value) ⇒ Object
Sets the description property value.
-
#display_name ⇒ Object
Gets the displayName property value.
-
#display_name=(value) ⇒ Object
Sets the displayName property value.
-
#external_id ⇒ Object
Gets the externalId property value.
-
#external_id=(value) ⇒ Object
Sets the externalId property value.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new educationCourse 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.
-
#subject ⇒ Object
Gets the subject property value.
-
#subject=(value) ⇒ Object
Sets the subject property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new educationCourse and sets the default values.
49 50 51 |
# File 'lib/models/education_course.rb', line 49 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
72 73 74 75 |
# File 'lib/models/education_course.rb', line 72 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return EducationCourse.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.
34 35 36 |
# File 'lib/models/education_course.rb', line 34 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.
42 43 44 |
# File 'lib/models/education_course.rb', line 42 def additional_data=(value) @additional_data = value end |
#course_number ⇒ Object
Gets the courseNumber property value. Unique identifier for the course.
56 57 58 |
# File 'lib/models/education_course.rb', line 56 def course_number return @course_number end |
#course_number=(value) ⇒ Object
Sets the courseNumber property value. Unique identifier for the course.
64 65 66 |
# File 'lib/models/education_course.rb', line 64 def course_number=(value) @course_number = value end |
#description ⇒ Object
Gets the description property value. Description of the course.
80 81 82 |
# File 'lib/models/education_course.rb', line 80 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. Description of the course.
88 89 90 |
# File 'lib/models/education_course.rb', line 88 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. Name of the course.
95 96 97 |
# File 'lib/models/education_course.rb', line 95 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. Name of the course.
103 104 105 |
# File 'lib/models/education_course.rb', line 103 def display_name=(value) @display_name = value end |
#external_id ⇒ Object
Gets the externalId property value. ID of the course from the syncing system.
110 111 112 |
# File 'lib/models/education_course.rb', line 110 def external_id return @external_id end |
#external_id=(value) ⇒ Object
Sets the externalId property value. ID of the course from the syncing system.
118 119 120 |
# File 'lib/models/education_course.rb', line 118 def external_id=(value) @external_id = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
125 126 127 128 129 130 131 132 133 134 |
# File 'lib/models/education_course.rb', line 125 def get_field_deserializers() return { "courseNumber" => lambda {|n| @course_number = n.get_string_value() }, "description" => lambda {|n| @description = n.get_string_value() }, "displayName" => lambda {|n| @display_name = n.get_string_value() }, "externalId" => lambda {|n| @external_id = n.get_string_value() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "subject" => lambda {|n| @subject = n.get_string_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
139 140 141 |
# File 'lib/models/education_course.rb', line 139 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
147 148 149 |
# File 'lib/models/education_course.rb', line 147 def odata_type=(value) @odata_type = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
155 156 157 158 159 160 161 162 163 164 |
# File 'lib/models/education_course.rb', line 155 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_string_value("courseNumber", @course_number) writer.write_string_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_string_value("externalId", @external_id) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("subject", @subject) writer.write_additional_data(@additional_data) end |
#subject ⇒ Object
Gets the subject property value. Subject of the course.
169 170 171 |
# File 'lib/models/education_course.rb', line 169 def subject return @subject end |
#subject=(value) ⇒ Object
Sets the subject property value. Subject of the course.
177 178 179 |
# File 'lib/models/education_course.rb', line 177 def subject=(value) @subject = value end |