Class: Google::Apis::ClassroomV1::StudentSubmission
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::StudentSubmission
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
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.
Instance Attribute Summary collapse
-
#alternate_link ⇒ String
Absolute link to the submission in the Classroom web UI.
-
#assigned_grade ⇒ Float
Optional grade.
-
#assignment_submission ⇒ Google::Apis::ClassroomV1::AssignmentSubmission
Student work for an assignment.
-
#associated_with_developer ⇒ Boolean
(also: #associated_with_developer?)
Whether this student submission is associated with the Developer Console project making the request.
-
#course_id ⇒ String
Identifier of the course.
-
#course_work_id ⇒ String
Identifier for the course work this corresponds to.
-
#course_work_type ⇒ String
Type of course work this submission is for.
-
#creation_time ⇒ String
Creation time of this submission.
-
#draft_grade ⇒ Float
Optional pending grade.
-
#id ⇒ String
Classroom-assigned Identifier for the student submission.
-
#late ⇒ Boolean
(also: #late?)
Whether this submission is late.
-
#multiple_choice_submission ⇒ Google::Apis::ClassroomV1::MultipleChoiceSubmission
Student work for a multiple-choice question.
-
#short_answer_submission ⇒ Google::Apis::ClassroomV1::ShortAnswerSubmission
Student work for a short answer question.
-
#state ⇒ String
State of this submission.
-
#update_time ⇒ String
Last update time of this submission.
-
#user_id ⇒ String
Identifier for the student that owns this submission.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StudentSubmission
constructor
A new instance of StudentSubmission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ StudentSubmission
Returns a new instance of StudentSubmission
701 702 703 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 701 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_link ⇒ String
Absolute link to the submission in the Classroom web UI.
Read-only.
Corresponds to the JSON property alternateLink
639 640 641 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 639 def alternate_link @alternate_link end |
#assigned_grade ⇒ Float
Optional grade. If unset, no grade was set.
This must be a non-negative integer value.
This may be modified only by course teachers.
Corresponds to the JSON property assignedGrade
616 617 618 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 616 def assigned_grade @assigned_grade end |
#assignment_submission ⇒ Google::Apis::ClassroomV1::AssignmentSubmission
Student work for an assignment.
Corresponds to the JSON property assignmentSubmission
668 669 670 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 668 def assignment_submission @assignment_submission end |
#associated_with_developer ⇒ Boolean Also known as: associated_with_developer?
Whether this student submission is associated with the Developer Console
project making the request.
See google.classroom.Work.CreateCourseWork for more
details.
Read-only.
Corresponds to the JSON property associatedWithDeveloper
625 626 627 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 625 def associated_with_developer @associated_with_developer end |
#course_id ⇒ String
Identifier of the course.
Read-only.
Corresponds to the JSON property courseId
681 682 683 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 681 def course_id @course_id end |
#course_work_id ⇒ String
Identifier for the course work this corresponds to.
Read-only.
Corresponds to the JSON property courseWorkId
699 700 701 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 699 def course_work_id @course_work_id end |
#course_work_type ⇒ String
Type of course work this submission is for.
Read-only.
Corresponds to the JSON property courseWorkType
609 610 611 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 609 def course_work_type @course_work_type end |
#creation_time ⇒ 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
675 676 677 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 675 def creation_time @creation_time end |
#draft_grade ⇒ Float
Optional pending grade. If unset, no grade was set.
This must be a non-negative integer value.
This is only visible to and modifiable by course teachers.
Corresponds to the JSON property draftGrade
646 647 648 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 646 def draft_grade @draft_grade end |
#id ⇒ String
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
603 604 605 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 603 def id @id end |
#late ⇒ Boolean Also known as: late?
Whether this submission is late.
Read-only.
Corresponds to the JSON property late
692 693 694 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 692 def late @late end |
#multiple_choice_submission ⇒ Google::Apis::ClassroomV1::MultipleChoiceSubmission
Student work for a multiple-choice question.
Corresponds to the JSON property multipleChoiceSubmission
657 658 659 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 657 def multiple_choice_submission @multiple_choice_submission end |
#short_answer_submission ⇒ Google::Apis::ClassroomV1::ShortAnswerSubmission
Student work for a short answer question.
Corresponds to the JSON property shortAnswerSubmission
686 687 688 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 686 def short_answer_submission @short_answer_submission end |
#state ⇒ String
State of this submission.
Read-only.
Corresponds to the JSON property state
663 664 665 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 663 def state @state end |
#update_time ⇒ String
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
633 634 635 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 633 def update_time @update_time end |
#user_id ⇒ String
Identifier for the student that owns this submission.
Read-only.
Corresponds to the JSON property userId
652 653 654 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 652 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 706 def update!(**args) @id = args[:id] if args.key?(:id) @course_work_type = args[:course_work_type] if args.key?(:course_work_type) @assigned_grade = args[:assigned_grade] if args.key?(:assigned_grade) @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer) @update_time = args[:update_time] if args.key?(:update_time) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @draft_grade = args[:draft_grade] if args.key?(:draft_grade) @user_id = args[:user_id] if args.key?(:user_id) @multiple_choice_submission = args[:multiple_choice_submission] if args.key?(:multiple_choice_submission) @state = args[:state] if args.key?(:state) @assignment_submission = args[:assignment_submission] if args.key?(:assignment_submission) @creation_time = args[:creation_time] if args.key?(:creation_time) @course_id = args[:course_id] if args.key?(:course_id) @short_answer_submission = args[:short_answer_submission] if args.key?(:short_answer_submission) @late = args[:late] if args.key?(:late) @course_work_id = args[:course_work_id] if args.key?(:course_work_id) end |