Class: MicrosoftGraph::Models::RubricQuality
- Inherits:
-
Object
- Object
- MicrosoftGraph::Models::RubricQuality
- Includes:
- MicrosoftKiotaAbstractions::AdditionalDataHolder, MicrosoftKiotaAbstractions::Parsable
- Defined in:
- lib/models/rubric_quality.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.
-
#criteria ⇒ Object
Gets the criteria property value.
-
#criteria=(value) ⇒ Object
Sets the criteria 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.
-
#initialize ⇒ Object
constructor
Instantiates a new rubricQuality and sets the default values.
-
#odata_type ⇒ Object
Gets the @odata.type property value.
-
#odata_type=(value) ⇒ Object
Sets the @odata.type property value.
-
#quality_id ⇒ Object
Gets the qualityId property value.
-
#quality_id=(value) ⇒ Object
Sets the qualityId property value.
-
#serialize(writer) ⇒ Object
Serializes information the current object.
-
#weight ⇒ Object
Gets the weight property value.
-
#weight=(value) ⇒ Object
Sets the weight property value.
Constructor Details
#initialize ⇒ Object
Instantiates a new rubricQuality and sets the default values.
49 50 51 |
# File 'lib/models/rubric_quality.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
57 58 59 60 |
# File 'lib/models/rubric_quality.rb', line 57 def self.create_from_discriminator_value(parse_node) raise StandardError, 'parse_node cannot be null' if parse_node.nil? return RubricQuality.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/rubric_quality.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/rubric_quality.rb', line 42 def additional_data=(value) @additional_data = value end |
#criteria ⇒ Object
Gets the criteria property value. The collection of criteria for this rubric quality.
65 66 67 |
# File 'lib/models/rubric_quality.rb', line 65 def criteria return @criteria end |
#criteria=(value) ⇒ Object
Sets the criteria property value. The collection of criteria for this rubric quality.
73 74 75 |
# File 'lib/models/rubric_quality.rb', line 73 def criteria=(value) @criteria = value end |
#description ⇒ Object
Gets the description property value. The description of this rubric quality.
80 81 82 |
# File 'lib/models/rubric_quality.rb', line 80 def description return @description end |
#description=(value) ⇒ Object
Sets the description property value. The description of this rubric quality.
88 89 90 |
# File 'lib/models/rubric_quality.rb', line 88 def description=(value) @description = value end |
#display_name ⇒ Object
Gets the displayName property value. The name of this rubric quality.
95 96 97 |
# File 'lib/models/rubric_quality.rb', line 95 def display_name return @display_name end |
#display_name=(value) ⇒ Object
Sets the displayName property value. The name of this rubric quality.
103 104 105 |
# File 'lib/models/rubric_quality.rb', line 103 def display_name=(value) @display_name = value end |
#get_field_deserializers ⇒ Object
The deserialization information for the current model
110 111 112 113 114 115 116 117 118 119 |
# File 'lib/models/rubric_quality.rb', line 110 def get_field_deserializers() return { "criteria" => lambda {|n| @criteria = n.get_collection_of_object_values(lambda {|pn| MicrosoftGraph::Models::RubricCriterion.create_from_discriminator_value(pn) }) }, "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() }, "@odata.type" => lambda {|n| @odata_type = n.get_string_value() }, "qualityId" => lambda {|n| @quality_id = n.get_string_value() }, "weight" => lambda {|n| @weight = n.get_float_value() }, } end |
#odata_type ⇒ Object
Gets the @odata.type property value. The OdataType property
124 125 126 |
# File 'lib/models/rubric_quality.rb', line 124 def odata_type return @odata_type end |
#odata_type=(value) ⇒ Object
Sets the @odata.type property value. The OdataType property
132 133 134 |
# File 'lib/models/rubric_quality.rb', line 132 def odata_type=(value) @odata_type = value end |
#quality_id ⇒ Object
Gets the qualityId property value. The ID of this resource.
139 140 141 |
# File 'lib/models/rubric_quality.rb', line 139 def quality_id return @quality_id end |
#quality_id=(value) ⇒ Object
Sets the qualityId property value. The ID of this resource.
147 148 149 |
# File 'lib/models/rubric_quality.rb', line 147 def quality_id=(value) @quality_id = value end |
#serialize(writer) ⇒ Object
Serializes information the current object
155 156 157 158 159 160 161 162 163 164 |
# File 'lib/models/rubric_quality.rb', line 155 def serialize(writer) raise StandardError, 'writer cannot be null' if writer.nil? writer.write_collection_of_object_values("criteria", @criteria) writer.write_object_value("description", @description) writer.write_string_value("displayName", @display_name) writer.write_string_value("@odata.type", @odata_type) writer.write_string_value("qualityId", @quality_id) writer.write_float_value("weight", @weight) writer.write_additional_data(@additional_data) end |
#weight ⇒ Object
Gets the weight property value. If present, a numerical weight for this quality. Weights must add up to 100.
169 170 171 |
# File 'lib/models/rubric_quality.rb', line 169 def weight return @weight end |
#weight=(value) ⇒ Object
Sets the weight property value. If present, a numerical weight for this quality. Weights must add up to 100.
177 178 179 |
# File 'lib/models/rubric_quality.rb', line 177 def weight=(value) @weight = value end |