class Google::Apis::ClassroomV1::StudentSubmission

Student submission for course work. StudentSubmission items are generated when a CourseWork item is created. StudentSubmissions that have never been accessed (i.e. with `state` = NEW) may not have a creation time or update time.

Attributes

assigned_grade[RW]

Optional grade. If unset, no grade was set. This value must be non-negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This may be modified only by course teachers. Corresponds to the JSON property `assignedGrade` @return [Float]

assignment_submission[RW]

Student work for an assignment. Corresponds to the JSON property `assignmentSubmission` @return [Google::Apis::ClassroomV1::AssignmentSubmission]

associated_with_developer[RW]

Whether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only. Corresponds to the JSON property `associatedWithDeveloper` @return [Boolean]

associated_with_developer?[RW]

Whether this student submission is associated with the Developer Console project making the request. See CreateCourseWork for more details. Read-only. Corresponds to the JSON property `associatedWithDeveloper` @return [Boolean]

course_id[RW]

Identifier of the course. Read-only. Corresponds to the JSON property `courseId` @return [String]

course_work_id[RW]

Identifier for the course work this corresponds to. Read-only. Corresponds to the JSON property `courseWorkId` @return [String]

course_work_type[RW]

Type of course work this submission is for. Read-only. Corresponds to the JSON property `courseWorkType` @return [String]

creation_time[RW]

Creation time of this submission. This may be unset if the student has not accessed this item. Read-only. Corresponds to the JSON property `creationTime` @return [String]

draft_grade[RW]

Optional pending grade. If unset, no grade was set. This value must be non- negative. Decimal (that is, non-integer) values are allowed, but are rounded to two decimal places. This is only visible to and modifiable by course teachers. Corresponds to the JSON property `draftGrade` @return [Float]

id[RW]

Classroom-assigned Identifier for the student submission. This is unique among submissions for the relevant course work. Read-only. Corresponds to the JSON property `id` @return [String]

late[RW]

Whether this submission is late. Read-only. Corresponds to the JSON property `late` @return [Boolean]

late?[RW]

Whether this submission is late. Read-only. Corresponds to the JSON property `late` @return [Boolean]

multiple_choice_submission[RW]

Student work for a multiple-choice question. Corresponds to the JSON property `multipleChoiceSubmission` @return [Google::Apis::ClassroomV1::MultipleChoiceSubmission]

short_answer_submission[RW]

Student work for a short answer question. Corresponds to the JSON property `shortAnswerSubmission` @return [Google::Apis::ClassroomV1::ShortAnswerSubmission]

state[RW]

State of this submission. Read-only. Corresponds to the JSON property `state` @return [String]

submission_history[RW]

The history of the submission (includes state and grade histories). Read-only. Corresponds to the JSON property `submissionHistory` @return [Array<Google::Apis::ClassroomV1::SubmissionHistory>]

update_time[RW]

Last update time of this submission. This may be unset if the student has not accessed this item. Read-only. Corresponds to the JSON property `updateTime` @return [String]

user_id[RW]

Identifier for the student that owns this submission. Read-only. Corresponds to the JSON property `userId` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/classroom_v1/classes.rb, line 2012
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/classroom_v1/classes.rb, line 2017
def update!(**args)
  @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
  @assigned_grade = args[:assigned_grade] if args.key?(:assigned_grade)
  @assignment_submission = args[:assignment_submission] if args.key?(:assignment_submission)
  @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer)
  @course_id = args[:course_id] if args.key?(:course_id)
  @course_work_id = args[:course_work_id] if args.key?(:course_work_id)
  @course_work_type = args[:course_work_type] if args.key?(:course_work_type)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @draft_grade = args[:draft_grade] if args.key?(:draft_grade)
  @id = args[:id] if args.key?(:id)
  @late = args[:late] if args.key?(:late)
  @multiple_choice_submission = args[:multiple_choice_submission] if args.key?(:multiple_choice_submission)
  @short_answer_submission = args[:short_answer_submission] if args.key?(:short_answer_submission)
  @state = args[:state] if args.key?(:state)
  @submission_history = args[:submission_history] if args.key?(:submission_history)
  @update_time = args[:update_time] if args.key?(:update_time)
  @user_id = args[:user_id] if args.key?(:user_id)
end