Class: Google::Apis::ClassroomV1::GradebookSettings
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::GradebookSettings
- 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
The gradebook settings for a course. See the help center article for details.
Instance Attribute Summary collapse
-
#calculation_type ⇒ String
Indicates how the overall grade is calculated.
-
#display_setting ⇒ String
Indicates who can see the overall grade..
-
#grade_categories ⇒ Array<Google::Apis::ClassroomV1::GradeCategory>
Grade categories that are available for coursework in the course.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GradebookSettings
constructor
A new instance of GradebookSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GradebookSettings
Returns a new instance of GradebookSettings.
1108 1109 1110 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1108 def initialize(**args) update!(**args) end |
Instance Attribute Details
#calculation_type ⇒ String
Indicates how the overall grade is calculated.
Corresponds to the JSON property calculationType
1096 1097 1098 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1096 def calculation_type @calculation_type end |
#display_setting ⇒ String
Indicates who can see the overall grade..
Corresponds to the JSON property displaySetting
1101 1102 1103 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1101 def display_setting @display_setting end |
#grade_categories ⇒ Array<Google::Apis::ClassroomV1::GradeCategory>
Grade categories that are available for coursework in the course.
Corresponds to the JSON property gradeCategories
1106 1107 1108 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1106 def grade_categories @grade_categories end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1113 1114 1115 1116 1117 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 1113 def update!(**args) @calculation_type = args[:calculation_type] if args.key?(:calculation_type) @display_setting = args[:display_setting] if args.key?(:display_setting) @grade_categories = args[:grade_categories] if args.key?(:grade_categories) end |