Class: Google::Apis::ClassroomV1::StudentSubmission

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
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

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StudentSubmission

Returns a new instance of StudentSubmission



643
644
645
# File 'generated/google/apis/classroom_v1/classes.rb', line 643

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

Instance Attribute Details

Absolute link to the submission in the Classroom web UI. Read-only. Corresponds to the JSON property alternateLink

Returns:

  • (String)


576
577
578
# File 'generated/google/apis/classroom_v1/classes.rb', line 576

def alternate_link
  @alternate_link
end

#assigned_gradeFloat

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

Returns:

  • (Float)


641
642
643
# File 'generated/google/apis/classroom_v1/classes.rb', line 641

def assigned_grade
  @assigned_grade
end

#assignment_submissionGoogle::Apis::ClassroomV1::AssignmentSubmission

Student work for an assignment. Corresponds to the JSON property assignmentSubmission



548
549
550
# File 'generated/google/apis/classroom_v1/classes.rb', line 548

def assignment_submission
  @assignment_submission
end

#associated_with_developerBoolean 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

Returns:

  • (Boolean)


557
558
559
# File 'generated/google/apis/classroom_v1/classes.rb', line 557

def associated_with_developer
  @associated_with_developer
end

#course_idString

Identifier of the course. Read-only. Corresponds to the JSON property courseId

Returns:

  • (String)


627
628
629
# File 'generated/google/apis/classroom_v1/classes.rb', line 627

def course_id
  @course_id
end

#course_work_idString

Identifier for the course work this corresponds to. Read-only. Corresponds to the JSON property courseWorkId

Returns:

  • (String)


621
622
623
# File 'generated/google/apis/classroom_v1/classes.rb', line 621

def course_work_id
  @course_work_id
end

#course_work_typeString

Type of course work this submission is for. Read-only. Corresponds to the JSON property courseWorkType

Returns:

  • (String)


596
597
598
# File 'generated/google/apis/classroom_v1/classes.rb', line 596

def course_work_type
  @course_work_type
end

#creation_timeString

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

Returns:

  • (String)


603
604
605
# File 'generated/google/apis/classroom_v1/classes.rb', line 603

def creation_time
  @creation_time
end

#draft_gradeFloat

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

Returns:

  • (Float)


583
584
585
# File 'generated/google/apis/classroom_v1/classes.rb', line 583

def draft_grade
  @draft_grade
end

#idString

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

Returns:

  • (String)


634
635
636
# File 'generated/google/apis/classroom_v1/classes.rb', line 634

def id
  @id
end

#lateBoolean Also known as: late?

Whether this submission is late. Read-only. Corresponds to the JSON property late

Returns:

  • (Boolean)


589
590
591
# File 'generated/google/apis/classroom_v1/classes.rb', line 589

def late
  @late
end

#multiple_choice_submissionGoogle::Apis::ClassroomV1::MultipleChoiceSubmission

Student work for a multiple-choice question. Corresponds to the JSON property multipleChoiceSubmission



543
544
545
# File 'generated/google/apis/classroom_v1/classes.rb', line 543

def multiple_choice_submission
  @multiple_choice_submission
end

#short_answer_submissionGoogle::Apis::ClassroomV1::ShortAnswerSubmission

Student work for a short answer question. Corresponds to the JSON property shortAnswerSubmission



563
564
565
# File 'generated/google/apis/classroom_v1/classes.rb', line 563

def short_answer_submission
  @short_answer_submission
end

#stateString

State of this submission. Read-only. Corresponds to the JSON property state

Returns:

  • (String)


609
610
611
# File 'generated/google/apis/classroom_v1/classes.rb', line 609

def state
  @state
end

#update_timeString

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

Returns:

  • (String)


570
571
572
# File 'generated/google/apis/classroom_v1/classes.rb', line 570

def update_time
  @update_time
end

#user_idString

Identifier for the student that owns this submission. Read-only. Corresponds to the JSON property userId

Returns:

  • (String)


615
616
617
# File 'generated/google/apis/classroom_v1/classes.rb', line 615

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
# File 'generated/google/apis/classroom_v1/classes.rb', line 648

def update!(**args)
  @multiple_choice_submission = args[:multiple_choice_submission] if args.key?(:multiple_choice_submission)
  @assignment_submission = args[:assignment_submission] if args.key?(:assignment_submission)
  @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer)
  @short_answer_submission = args[:short_answer_submission] if args.key?(:short_answer_submission)
  @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)
  @late = args[:late] if args.key?(:late)
  @course_work_type = args[:course_work_type] if args.key?(:course_work_type)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @state = args[:state] if args.key?(:state)
  @user_id = args[:user_id] if args.key?(:user_id)
  @course_work_id = args[:course_work_id] if args.key?(:course_work_id)
  @course_id = args[:course_id] if args.key?(:course_id)
  @id = args[:id] if args.key?(:id)
  @assigned_grade = args[:assigned_grade] if args.key?(:assigned_grade)
end