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.



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

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)


1344
1345
1346
# File 'lib/google/apis/classroom_v1/classes.rb', line 1344

def calculation_type
  @calculation_type
end

#display_settingString

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

Returns:

  • (String)


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

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



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

def grade_categories
  @grade_categories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1361
1362
1363
1364
1365
# File 'lib/google/apis/classroom_v1/classes.rb', line 1361

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