Class: MicrosoftGraph::Models::EducationRubric

Inherits:
Entity
  • Object
show all
Includes:
MicrosoftKiotaAbstractions::Parsable
Defined in:
lib/models/education_rubric.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 educationRubric and sets the default values.



41
42
43
# File 'lib/models/education_rubric.rb', line 41

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_rubric

Raises:

  • (StandardError)


79
80
81
82
# File 'lib/models/education_rubric.rb', line 79

def self.create_from_discriminator_value(parse_node)
    raise StandardError, 'parse_node cannot be null' if parse_node.nil?
    return EducationRubric.new
end

Instance Method Details

#created_byObject

Gets the createdBy property value. The user who created this resource.

Returns:

  • a identity_set



48
49
50
# File 'lib/models/education_rubric.rb', line 48

def created_by
    return @created_by
end

#created_by=(value) ⇒ Object

Sets the createdBy property value. The user who created this resource.

Parameters:

  • value

    Value to set for the createdBy property.

Returns:

  • a void



56
57
58
# File 'lib/models/education_rubric.rb', line 56

def created_by=(value)
    @created_by = value
end

#created_date_timeObject

Gets the createdDateTime property value. 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, 2014 is 2014-01-01T00:00:00Z

Returns:

  • a date_time



63
64
65
# File 'lib/models/education_rubric.rb', line 63

def created_date_time
    return @created_date_time
end

#created_date_time=(value) ⇒ Object

Sets the createdDateTime property value. 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, 2014 is 2014-01-01T00:00:00Z

Parameters:

  • value

    Value to set for the createdDateTime property.

Returns:

  • a void



71
72
73
# File 'lib/models/education_rubric.rb', line 71

def created_date_time=(value)
    @created_date_time = value
end

#descriptionObject

Gets the description property value. The description of this rubric.

Returns:

  • a education_item_body



87
88
89
# File 'lib/models/education_rubric.rb', line 87

def description
    return @description
end

#description=(value) ⇒ Object

Sets the description property value. The description of this rubric.

Parameters:

  • value

    Value to set for the description property.

Returns:

  • a void



95
96
97
# File 'lib/models/education_rubric.rb', line 95

def description=(value)
    @description = value
end

#display_nameObject

Gets the displayName property value. The name of this rubric.

Returns:

  • a string



102
103
104
# File 'lib/models/education_rubric.rb', line 102

def display_name
    return @display_name
end

#display_name=(value) ⇒ Object

Sets the displayName property value. The name of this rubric.

Parameters:

  • value

    Value to set for the displayName property.

Returns:

  • a void



110
111
112
# File 'lib/models/education_rubric.rb', line 110

def display_name=(value)
    @display_name = value
end

#get_field_deserializersObject

The deserialization information for the current model

Returns:

  • a i_dictionary



117
118
119
120
121
122
123
124
125
126
127
128
129
# File 'lib/models/education_rubric.rb', line 117

def get_field_deserializers()
    return super.merge({
        "createdBy" => lambda {|n| @created_by = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::IdentitySet.create_from_discriminator_value(pn) }) },
        "createdDateTime" => lambda {|n| @created_date_time = n.get_date_time_value() },
        "description" => lambda {|n| @description = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationItemBody.create_from_discriminator_value(pn) }) },
        "displayName" => lambda {|n| @display_name = n.get_string_value() },
        "grading" => lambda {|n| @grading = n.get_object_value(lambda {|pn| MicrosoftGraph::Models::EducationAssignmentGradeType.create_from_discriminator_value(pn) }) },
        "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() },
        "levels" => lambda {|n| @levels = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RubricLevel.create_from_discriminator_value(pn) }) },
        "qualities" => lambda {|n| @qualities = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RubricQuality.create_from_discriminator_value(pn) }) },
    })
end

#gradingObject

Gets the grading property value. The grading type of this rubric – null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric.

Returns:

  • a education_assignment_grade_type



134
135
136
# File 'lib/models/education_rubric.rb', line 134

def grading
    return @grading
end

#grading=(value) ⇒ Object

Sets the grading property value. The grading type of this rubric – null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric.

Parameters:

  • value

    Value to set for the grading property.

Returns:

  • a void



142
143
144
# File 'lib/models/education_rubric.rb', line 142

def grading=(value)
    @grading = value
end

#last_modified_byObject

Gets the lastModifiedBy property value. The last user to modify the resource.

Returns:

  • a identity_set



149
150
151
# File 'lib/models/education_rubric.rb', line 149

def last_modified_by
    return @last_modified_by
end

#last_modified_by=(value) ⇒ Object

Sets the lastModifiedBy property value. The last user to modify the resource.

Parameters:

  • value

    Value to set for the lastModifiedBy property.

Returns:

  • a void



157
158
159
# File 'lib/models/education_rubric.rb', line 157

def last_modified_by=(value)
    @last_modified_by = value
end

#last_modified_date_timeObject

Gets the lastModifiedDateTime property value. 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, 2014 is 2014-01-01T00:00:00Z

Returns:

  • a date_time



164
165
166
# File 'lib/models/education_rubric.rb', line 164

def last_modified_date_time
    return @last_modified_date_time
end

#last_modified_date_time=(value) ⇒ Object

Sets the lastModifiedDateTime property value. 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, 2014 is 2014-01-01T00:00:00Z

Parameters:

  • value

    Value to set for the lastModifiedDateTime property.

Returns:

  • a void



172
173
174
# File 'lib/models/education_rubric.rb', line 172

def last_modified_date_time=(value)
    @last_modified_date_time = value
end

#levelsObject

Gets the levels property value. The collection of levels making up this rubric.

Returns:

  • a rubric_level



179
180
181
# File 'lib/models/education_rubric.rb', line 179

def levels
    return @levels
end

#levels=(value) ⇒ Object

Sets the levels property value. The collection of levels making up this rubric.

Parameters:

  • value

    Value to set for the levels property.

Returns:

  • a void



187
188
189
# File 'lib/models/education_rubric.rb', line 187

def levels=(value)
    @levels = value
end

#qualitiesObject

Gets the qualities property value. The collection of qualities making up this rubric.

Returns:

  • a rubric_quality



194
195
196
# File 'lib/models/education_rubric.rb', line 194

def qualities
    return @qualities
end

#qualities=(value) ⇒ Object

Sets the qualities property value. The collection of qualities making up this rubric.

Parameters:

  • value

    Value to set for the qualities property.

Returns:

  • a void



202
203
204
# File 'lib/models/education_rubric.rb', line 202

def qualities=(value)
    @qualities = 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)


210
211
212
213
214
215
216
217
218
# File 'lib/models/education_rubric.rb', line 210

def serialize(writer)
    raise StandardError, 'writer cannot be null' if writer.nil?
    super
    writer.write_object_value("description", @description)
    writer.write_string_value("displayName", @display_name)
    writer.write_object_value("grading", @grading)
    writer.write_collection_of_object_values("levels", @levels)
    writer.write_collection_of_object_values("qualities", @qualities)
end