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. 
- 
  
    
      #submission_history  ⇒ Array<Google::Apis::ClassroomV1::SubmissionHistory> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The history of the submission (includes state and grade histories). 
- 
  
    
      #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
| 1919 1920 1921 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1919 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
| 1812 1813 1814 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1812 def alternate_link @alternate_link end | 
#assigned_grade ⇒ Float
Optional grade. If unset, no grade was set.
This value must be non-negative. Decimal (i.e. non-integer) values are
allowed, but will be rounded to two decimal places.
This may be modified only by course teachers.
Corresponds to the JSON property assignedGrade
| 1820 1821 1822 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1820 def assigned_grade @assigned_grade end | 
#assignment_submission ⇒ Google::Apis::ClassroomV1::AssignmentSubmission
Student work for an assignment.
Corresponds to the JSON property assignmentSubmission
| 1825 1826 1827 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1825 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
| 1834 1835 1836 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1834 def associated_with_developer @associated_with_developer end | 
#course_id ⇒ String
Identifier of the course.
Read-only.
Corresponds to the JSON property courseId
| 1841 1842 1843 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1841 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
| 1847 1848 1849 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1847 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
| 1853 1854 1855 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1853 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
| 1860 1861 1862 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1860 def creation_time @creation_time end | 
#draft_grade ⇒ Float
Optional pending grade. If unset, no grade was set.
This value must be non-negative. Decimal (i.e. non-integer) values are
allowed, but will be rounded to two decimal places.
This is only visible to and modifiable by course teachers.
Corresponds to the JSON property draftGrade
| 1868 1869 1870 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1868 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
| 1875 1876 1877 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1875 def id @id end | 
#late ⇒ Boolean Also known as: late?
Whether this submission is late.
Read-only.
Corresponds to the JSON property late
| 1881 1882 1883 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1881 def late @late end | 
#multiple_choice_submission ⇒ Google::Apis::ClassroomV1::MultipleChoiceSubmission
Student work for a multiple-choice question.
Corresponds to the JSON property multipleChoiceSubmission
| 1887 1888 1889 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1887 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
| 1892 1893 1894 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1892 def short_answer_submission @short_answer_submission end | 
#state ⇒ String
State of this submission.
Read-only.
Corresponds to the JSON property state
| 1898 1899 1900 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1898 def state @state end | 
#submission_history ⇒ Array<Google::Apis::ClassroomV1::SubmissionHistory>
The history of the submission (includes state and grade histories).
Read-only.
Corresponds to the JSON property submissionHistory
| 1904 1905 1906 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1904 def submission_history @submission_history 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
| 1911 1912 1913 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1911 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
| 1917 1918 1919 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1917 def user_id @user_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 | # File 'generated/google/apis/classroom_v1/classes.rb', line 1924 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 |