Class: Google::Apis::ClassroomV1::RubricGrade
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::RubricGrade
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/classroom_v1/classes.rb,
lib/google/apis/classroom_v1/representations.rb,
lib/google/apis/classroom_v1/representations.rb
Overview
A rubric grade set for the student submission. There is at most one entry per rubric criterion.
Instance Attribute Summary collapse
-
#criterion_id ⇒ String
Optional.
-
#level_id ⇒ String
Optional.
-
#points ⇒ Float
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RubricGrade
constructor
A new instance of RubricGrade.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RubricGrade
Returns a new instance of RubricGrade.
2341 2342 2343 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2341 def initialize(**args) update!(**args) end |
Instance Attribute Details
#criterion_id ⇒ String
Optional. Criterion ID.
Corresponds to the JSON property criterionId
2326 2327 2328 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2326 def criterion_id @criterion_id end |
#level_id ⇒ String
Optional. Optional level ID of the selected level. If empty, no level was
selected.
Corresponds to the JSON property levelId
2332 2333 2334 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2332 def level_id @level_id end |
#points ⇒ Float
Optional. Optional points assigned for this criterion, typically based on the
level. Levels might or might not have points. If unset, no points were set for
this criterion.
Corresponds to the JSON property points
2339 2340 2341 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2339 def points @points end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2346 2347 2348 2349 2350 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2346 def update!(**args) @criterion_id = args[:criterion_id] if args.key?(:criterion_id) @level_id = args[:level_id] if args.key?(:level_id) @points = args[:points] if args.key?(:points) end |