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.



1387
1388
1389
# File 'lib/google/apis/classroom_v1/classes.rb', line 1387

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)


1375
1376
1377
# File 'lib/google/apis/classroom_v1/classes.rb', line 1375

def calculation_type
  @calculation_type
end

#display_settingString

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

Returns:

  • (String)


1380
1381
1382
# File 'lib/google/apis/classroom_v1/classes.rb', line 1380

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



1385
1386
1387
# File 'lib/google/apis/classroom_v1/classes.rb', line 1385

def grade_categories
  @grade_categories
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1392
1393
1394
1395
1396
# File 'lib/google/apis/classroom_v1/classes.rb', line 1392

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