Class: Google::Apis::ClassroomV1::GradebookSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GradebookSettings

Returns a new instance of GradebookSettings.



1349
1350
1351
# File 'lib/google/apis/classroom_v1/classes.rb', line 1349

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#calculation_typeString

Indicates how the overall grade is calculated. Corresponds to the JSON property calculationType

Returns:

  • (String)


1337
1338
1339
# File 'lib/google/apis/classroom_v1/classes.rb', line 1337

def calculation_type
  @calculation_type
end

#display_settingString

Indicates who can see the overall grade.. Corresponds to the JSON property displaySetting

Returns:

  • (String)


1342
1343
1344
# File 'lib/google/apis/classroom_v1/classes.rb', line 1342

def display_setting
  @display_setting
end

#grade_categoriesArray<Google::Apis::ClassroomV1::GradeCategory>

Grade categories that are available for coursework in the course. Corresponds to the JSON property gradeCategories



1347
1348
1349
# File 'lib/google/apis/classroom_v1/classes.rb', line 1347

def grade_categories
  @grade_categories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1354
1355
1356
1357
1358
# File 'lib/google/apis/classroom_v1/classes.rb', line 1354

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