Class: MicrosoftGraph::Models::EducationOutcome
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_outcome.rb
Direct Known Subclasses
EducationFeedbackOutcome, EducationFeedbackResourceOutcome, EducationPointsOutcome, EducationRubricOutcome
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
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#initialize ⇒ Object
constructor
Instantiates a new educationOutcome and sets the default values.
-
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value.
-
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value.
-
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value.
-
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
Methods inherited from Entity
#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=
Constructor Details
#initialize ⇒ Object
Instantiates a new educationOutcome and sets the default values.
20 21 22 |
# File 'lib/models/education_outcome.rb', line 20 def initialize() super end |
Class Method Details
.create_from_discriminator_value(parse_node) ⇒ Object
Creates a new instance of the appropriate class based on discriminator value
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/models/education_outcome.rb', line 28 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? mapping_value_node = parse_node.get_child_node("@odata.type") unless mapping_value_node.nil? then mapping_value = mapping_value_node.get_string_value case mapping_value when "#microsoft.graph.educationFeedbackOutcome" return EducationFeedbackOutcome.new when "#microsoft.graph.educationFeedbackResourceOutcome" return EducationFeedbackResourceOutcome.new when "#microsoft.graph.educationPointsOutcome" return EducationPointsOutcome.new when "#microsoft.graph.educationRubricOutcome" return EducationRubricOutcome.new end end return EducationOutcome.new end |
Instance Method Details
#get_field_deserializers ⇒ Object
The deserialization information for the current model
50 51 52 53 54 55 |
# File 'lib/models/education_outcome.rb', line 50 def get_field_deserializers() return super.merge({ "lastModifiedBy" => lambda {|n| @last_modified_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) }, "lastModifiedDateTime" => lambda {|n| @last_modified_date_time = n.get_date_time_value() }, }) end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. The individual who updated the resource.
60 61 62 |
# File 'lib/models/education_outcome.rb', line 60 def last_modified_by return @last_modified_by end |
#last_modified_by=(value) ⇒ Object
Sets the lastModifiedBy property value. The individual who updated the resource.
68 69 70 |
# File 'lib/models/education_outcome.rb', line 68 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
Gets the lastModifiedDateTime property value. The moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2021 is 2021-01-01T00:00:00Z.
75 76 77 |
# File 'lib/models/education_outcome.rb', line 75 def last_modified_date_time return @last_modified_date_time end |
#last_modified_date_time=(value) ⇒ Object
Sets the lastModifiedDateTime property value. The moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2021 is 2021-01-01T00:00:00Z.
83 84 85 |
# File 'lib/models/education_outcome.rb', line 83 def last_modified_date_time=(value) @last_modified_date_time = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
91 92 93 94 95 96 |
# File 'lib/models/education_outcome.rb', line 91 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? super writer.write_object_value("lastModifiedBy", @last_modified_by) writer.write_date_time_value("lastModifiedDateTime", @last_modified_date_time) end |