Class: Google::Apis::ClassroomV1::GradeCategory
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::GradeCategory
- 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
Details for a grade category in a course. Coursework may have zero or one grade category, and the category may be used in computing the overall grade. See the help center article for details.
Instance Attribute Summary collapse
-
#default_grade_denominator ⇒ Fixnum
Default value of denominator.
-
#id ⇒ String
ID of the grade category.
-
#name ⇒ String
Name of the grade category.
-
#weight ⇒ Fixnum
The weight of the category average as part of overall average.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GradeCategory
constructor
A new instance of GradeCategory.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GradeCategory
Returns a new instance of GradeCategory.
1273 1274 1275 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1273 def initialize(**args) update!(**args) end |
Instance Attribute Details
#default_grade_denominator ⇒ Fixnum
Default value of denominator. Only applicable when grade calculation type is
TOTAL_POINTS.
Corresponds to the JSON property defaultGradeDenominator
1253 1254 1255 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1253 def default_grade_denominator @default_grade_denominator end |
#id ⇒ String
ID of the grade category.
Corresponds to the JSON property id
1258 1259 1260 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1258 def id @id end |
#name ⇒ String
Name of the grade category.
Corresponds to the JSON property name
1263 1264 1265 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1263 def name @name end |
#weight ⇒ Fixnum
The weight of the category average as part of overall average. A weight of 12.
34% is represented as 123400 (100% is 1,000,000). The last two digits should
always be zero since we use two decimal precision. Only applicable when grade
calculation type is WEIGHTED_CATEGORIES.
Corresponds to the JSON property weight
1271 1272 1273 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1271 def weight @weight end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1278 1279 1280 1281 1282 1283 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1278 def update!(**args) @default_grade_denominator = args[:default_grade_denominator] if args.key?(:default_grade_denominator) @id = args[:id] if args.key?(:id) @name = args[:name] if args.key?(:name) @weight = args[:weight] if args.key?(:weight) end |