Class: Google::Apis::ClassroomV1::AddOnAttachmentStudentSubmission
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::AddOnAttachmentStudentSubmission
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/classroom_v1/classes.rb,
lib/google/apis/classroom_v1/representations.rb,
lib/google/apis/classroom_v1/representations.rb
Overview
Payload for grade update requests.
Instance Attribute Summary collapse
-
#points_earned ⇒ Float
Student grade on this attachment.
-
#post_submission_state ⇒ String
Submission state of add-on attachment's parent post (i.e. assignment).
Instance Method Summary collapse
-
#initialize(**args) ⇒ AddOnAttachmentStudentSubmission
constructor
A new instance of AddOnAttachmentStudentSubmission.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AddOnAttachmentStudentSubmission
Returns a new instance of AddOnAttachmentStudentSubmission.
141 142 143 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#points_earned ⇒ Float
Student grade on this attachment. If unset, no grade was set.
Corresponds to the JSON property pointsEarned
134 135 136 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 134 def points_earned @points_earned end |
#post_submission_state ⇒ String
Submission state of add-on attachment's parent post (i.e. assignment).
Corresponds to the JSON property postSubmissionState
139 140 141 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 139 def post_submission_state @post_submission_state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
146 147 148 149 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 146 def update!(**args) @points_earned = args[:points_earned] if args.key?(:points_earned) @post_submission_state = args[:post_submission_state] if args.key?(:post_submission_state) end |