Class: Google::Apis::ClassroomV1::Rubric

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 rubric of the course work. A rubric is a scoring guide used to evaluate student work and give feedback. For further details, see Rubrics structure and known limitations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Rubric

Returns a new instance of Rubric.



2302
2303
2304
# File 'lib/google/apis/classroom_v1/classes.rb', line 2302

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

Instance Attribute Details

#course_idString

Identifier of the course. Read-only. Corresponds to the JSON property courseId

Returns:

  • (String)


2265
2266
2267
# File 'lib/google/apis/classroom_v1/classes.rb', line 2265

def course_id
  @course_id
end

#course_work_idString

Identifier for the course work this corresponds to. Read-only. Corresponds to the JSON property courseWorkId

Returns:

  • (String)


2270
2271
2272
# File 'lib/google/apis/classroom_v1/classes.rb', line 2270

def course_work_id
  @course_work_id
end

#creation_timeString

Output only. Timestamp when this rubric was created. Read-only. Corresponds to the JSON property creationTime

Returns:

  • (String)


2275
2276
2277
# File 'lib/google/apis/classroom_v1/classes.rb', line 2275

def creation_time
  @creation_time
end

#criteriaArray<Google::Apis::ClassroomV1::Criterion>

List of criteria. Each criterion is a dimension on which performance is rated. Corresponds to the JSON property criteria



2280
2281
2282
# File 'lib/google/apis/classroom_v1/classes.rb', line 2280

def criteria
  @criteria
end

#idString

Classroom-assigned identifier for the rubric. This is unique among rubrics for the relevant course work. Read-only. Corresponds to the JSON property id

Returns:

  • (String)


2286
2287
2288
# File 'lib/google/apis/classroom_v1/classes.rb', line 2286

def id
  @id
end

#source_spreadsheet_idString

Input only. Immutable. Google Sheets ID of the spreadsheet. This spreadsheet must contain formatted rubric settings. See Create or reuse a rubric for an assignment. Use of this field requires the https://www.googleapis.com/auth/spreadsheets.readonly or https://www.googleapis.com/auth/spreadsheets scope. Corresponds to the JSON property sourceSpreadsheetId

Returns:

  • (String)


2295
2296
2297
# File 'lib/google/apis/classroom_v1/classes.rb', line 2295

def source_spreadsheet_id
  @source_spreadsheet_id
end

#update_timeString

Output only. Timestamp of the most recent change to this rubric. Read-only. Corresponds to the JSON property updateTime

Returns:

  • (String)


2300
2301
2302
# File 'lib/google/apis/classroom_v1/classes.rb', line 2300

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2307
2308
2309
2310
2311
2312
2313
2314
2315
# File 'lib/google/apis/classroom_v1/classes.rb', line 2307

def update!(**args)
  @course_id = args[:course_id] if args.key?(:course_id)
  @course_work_id = args[:course_work_id] if args.key?(:course_work_id)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @criteria = args[:criteria] if args.key?(:criteria)
  @id = args[:id] if args.key?(:id)
  @source_spreadsheet_id = args[:source_spreadsheet_id] if args.key?(:source_spreadsheet_id)
  @update_time = args[:update_time] if args.key?(:update_time)
end