Class: MicrosoftGraph::Models::EducationOutcome

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/education_outcome.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#additional_data, #additional_data=, #id, #id=, #odata_type, #odata_type=

Constructor Details

#initializeObject

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

Parameters:

  • parse_node

    The parse node to use to read the discriminator value and create the object

Returns:

  • a education_outcome

Raises:

  • (StandardError)


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_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



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_byObject

Gets the lastModifiedBy property value. The individual who updated the resource.

Returns:

  • a identity_set



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.

Parameters:

  • value

    Value to set for the lastModifiedBy property.

Returns:

  • a void



68
69
70
# File 'lib/models/education_outcome.rb', line 68

def last_modified_by=(value)
    @last_modified_by = value
end

#last_modified_date_timeObject

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.

Returns:

  • a date_time



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.

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



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

Parameters:

  • writer

    Serialization writer to use to serialize this model

Returns:

  • a void

Raises:

  • (StandardError)


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