Class: Google::Apis::ClassroomV1::SubmissionHistory

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 history of the submission. This currently includes state and grade histories.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SubmissionHistory

Returns a new instance of SubmissionHistory.



2432
2433
2434
# File 'lib/google/apis/classroom_v1/classes.rb', line 2432

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

Instance Attribute Details

#grade_historyGoogle::Apis::ClassroomV1::GradeHistory

The history of each grade on this submission. Corresponds to the JSON property gradeHistory



2425
2426
2427
# File 'lib/google/apis/classroom_v1/classes.rb', line 2425

def grade_history
  @grade_history
end

#state_historyGoogle::Apis::ClassroomV1::StateHistory

The history of each state this submission has been in. Corresponds to the JSON property stateHistory



2430
2431
2432
# File 'lib/google/apis/classroom_v1/classes.rb', line 2430

def state_history
  @state_history
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2437
2438
2439
2440
# File 'lib/google/apis/classroom_v1/classes.rb', line 2437

def update!(**args)
  @grade_history = args[:grade_history] if args.key?(:grade_history)
  @state_history = args[:state_history] if args.key?(:state_history)
end