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
Absolute link to the submission in the Classroom web UI. Read-only. Corresponds to the JSON property `alternateLink` @return [String]
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]
Student
work for an assignment. Corresponds to the JSON property `assignmentSubmission` @return [Google::Apis::ClassroomV1::AssignmentSubmission]
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]
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]
Identifier of the course. Read-only. Corresponds to the JSON property `courseId` @return [String]
Identifier for the course work this corresponds to. Read-only. Corresponds to the JSON property `courseWorkId` @return [String]
Type of course work this submission is for. Read-only. Corresponds to the JSON property `courseWorkType` @return [String]
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]
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]
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]
Whether this submission is late. Read-only. Corresponds to the JSON property `late` @return [Boolean]
Whether this submission is late. Read-only. Corresponds to the JSON property `late` @return [Boolean]
Student
work for a multiple-choice question. Corresponds to the JSON property `multipleChoiceSubmission` @return [Google::Apis::ClassroomV1::MultipleChoiceSubmission]
Student
work for a short answer question. Corresponds to the JSON property `shortAnswerSubmission` @return [Google::Apis::ClassroomV1::ShortAnswerSubmission]
State of this submission. Read-only. Corresponds to the JSON property `state` @return [String]
The history of the submission (includes state and grade histories). Read-only. Corresponds to the JSON property `submissionHistory` @return [Array<Google::Apis::ClassroomV1::SubmissionHistory>]
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]
Identifier for the student that owns this submission. Read-only. Corresponds to the JSON property `userId` @return [String]
Public Class Methods
# File lib/google/apis/classroom_v1/classes.rb, line 2012 def initialize(**args) update!(**args) end
Public Instance Methods
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