Class: MicrosoftGraph::Models::EducationRubric
- Includes:
- MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/education_rubric.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
-
#created_by ⇒ Object
Gets the createdBy property value.
-
#created_by=(value) ⇒ Object
Sets the createdBy property value.
-
#created_date_time ⇒ Object
Gets the createdDateTime property value.
-
#created_date_time=(value) ⇒ Object
Sets the createdDateTime 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.
-
#get_field_deserializers ⇒ Object
The deserialization information for the current model.
-
#grading ⇒ Object
Gets the grading property value.
-
#grading=(value) ⇒ Object
Sets the grading property value.
-
#initialize ⇒ Object
constructor
Instantiates a new educationRubric 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.
-
#levels ⇒ Object
Gets the levels property value.
-
#levels=(value) ⇒ Object
Sets the levels property value.
-
#qualities ⇒ Object
Gets the qualities property value.
-
#qualities=(value) ⇒ Object
Sets the qualities 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 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
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_by ⇒ Object
Gets the createdBy property value. The user who created this resource.
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.
56 57 58 |
# File 'lib/models/education_rubric.rb', line 56 def created_by=(value) @created_by = value end |
#created_date_time ⇒ Object
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
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
71 72 73 |
# File 'lib/models/education_rubric.rb', line 71 def created_date_time=(value) @created_date_time = value end |
#description ⇒ Object
Gets the description property value. The description of this rubric.
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.
95 96 97 |
# File 'lib/models/education_rubric.rb', line 95 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of this rubric.
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.
110 111 112 |
# File 'lib/models/education_rubric.rb', line 110 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
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 |
#grading ⇒ Object
Gets the grading property value. The grading type of this rubric – null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric.
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.
142 143 144 |
# File 'lib/models/education_rubric.rb', line 142 def grading=(value) @grading = value end |
#last_modified_by ⇒ Object
Gets the lastModifiedBy property value. The last user to modify the resource.
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.
157 158 159 |
# File 'lib/models/education_rubric.rb', line 157 def last_modified_by=(value) @last_modified_by = value end |
#last_modified_date_time ⇒ Object
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
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
172 173 174 |
# File 'lib/models/education_rubric.rb', line 172 def last_modified_date_time=(value) @last_modified_date_time = value end |
#levels ⇒ Object
Gets the levels property value. The collection of levels making up this rubric.
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.
187 188 189 |
# File 'lib/models/education_rubric.rb', line 187 def levels=(value) @levels = value end |
#qualities ⇒ Object
Gets the qualities property value. The collection of qualities making up this rubric.
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.
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
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 |