Class: Google::Apis::ClassroomV1::CourseWork
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CourseWork
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
Course work created by a teacher for students of the course.
Instance Attribute Summary collapse
-
#alternate_link ⇒ String
Absolute link to this course work in the Classroom web UI.
-
#assignment ⇒ Google::Apis::ClassroomV1::Assignment
Additional details for assignments.
-
#associated_with_developer ⇒ Boolean
(also: #associated_with_developer?)
Whether this course work item is associated with the Developer Console project making the request.
-
#course_id ⇒ String
Identifier of the course.
-
#creation_time ⇒ String
Timestamp when this course work was created.
-
#description ⇒ String
Optional description of this course work.
-
#due_date ⇒ Google::Apis::ClassroomV1::Date
Represents a whole calendar date, e.g.
-
#due_time ⇒ Google::Apis::ClassroomV1::TimeOfDay
Represents a time of day.
-
#id ⇒ String
Classroom-assigned identifier of this course work, unique per course.
-
#materials ⇒ Array<Google::Apis::ClassroomV1::Material>
Additional materials.
-
#max_points ⇒ Float
Maximum grade for this course work.
-
#multiple_choice_question ⇒ Google::Apis::ClassroomV1::MultipleChoiceQuestion
Additional details for multiple-choice questions.
-
#state ⇒ String
Status of this course work.
-
#submission_modification_mode ⇒ String
Setting to determine when students are allowed to modify submissions.
-
#title ⇒ String
Title of this course work.
-
#update_time ⇒ String
Timestamp of the most recent change to this course work.
-
#work_type ⇒ String
Type of this course work.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CourseWork
constructor
A new instance of CourseWork.
-
#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) ⇒ CourseWork
Returns a new instance of CourseWork.
1034 1035 1036 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1034 def initialize(**args) update!(**args) end |
Instance Attribute Details
#alternate_link ⇒ String
Absolute link to this course work in the Classroom web UI. This is only
populated if state
is PUBLISHED
. Read-only.
Corresponds to the JSON property alternateLink
968 969 970 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 968 def alternate_link @alternate_link end |
#assignment ⇒ Google::Apis::ClassroomV1::Assignment
Additional details for assignments.
Corresponds to the JSON property assignment
1027 1028 1029 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1027 def assignment @assignment end |
#associated_with_developer ⇒ Boolean Also known as: associated_with_developer?
Whether this course work item 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
1015 1016 1017 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1015 def associated_with_developer @associated_with_developer end |
#course_id ⇒ String
Identifier of the course. Read-only.
Corresponds to the JSON property courseId
934 935 936 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 934 def course_id @course_id end |
#creation_time ⇒ String
Timestamp when this course work was created. Read-only.
Corresponds to the JSON property creationTime
973 974 975 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 973 def creation_time @creation_time end |
#description ⇒ String
Optional description of this course work. If set, the description must be a
valid UTF-8 string containing no more than 30,000 characters.
Corresponds to the JSON property description
952 953 954 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 952 def description @description end |
#due_date ⇒ Google::Apis::ClassroomV1::Date
Represents a whole calendar date, e.g. date of birth. The time of day and time
zone are either specified elsewhere or are not significant. The date is
relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a
year and month where the day is not significant, e.g. credit card expiration
date. The year may be 0 to represent a month and day independent of year, e.g.
anniversary date. Related types are google.type.TimeOfDay and google.protobuf.
Timestamp
.
Corresponds to the JSON property dueDate
989 990 991 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 989 def due_date @due_date end |
#due_time ⇒ Google::Apis::ClassroomV1::TimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may chose to allow leap seconds. Related types
are google.type.Date and google.protobuf.Timestamp
.
Corresponds to the JSON property dueTime
996 997 998 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 996 def due_time @due_time end |
#id ⇒ String
Classroom-assigned identifier of this course work, unique per course. Read-
only.
Corresponds to the JSON property id
940 941 942 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 940 def id @id end |
#materials ⇒ Array<Google::Apis::ClassroomV1::Material>
Additional materials. CourseWork must have no more than 20 material items.
Corresponds to the JSON property materials
957 958 959 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 957 def materials @materials end |
#max_points ⇒ Float
Maximum grade for this course work. If zero or unspecified, this assignment is
considered ungraded. This must be a non-negative integer value.
Corresponds to the JSON property maxPoints
1002 1003 1004 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1002 def max_points @max_points end |
#multiple_choice_question ⇒ Google::Apis::ClassroomV1::MultipleChoiceQuestion
Additional details for multiple-choice questions.
Corresponds to the JSON property multipleChoiceQuestion
1032 1033 1034 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1032 def multiple_choice_question @multiple_choice_question end |
#state ⇒ String
Status of this course work. If unspecified, the default state is DRAFT
.
Corresponds to the JSON property state
962 963 964 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 962 def state @state end |
#submission_modification_mode ⇒ String
Setting to determine when students are allowed to modify submissions. If
unspecified, the default value is MODIFIABLE_UNTIL_TURNED_IN
.
Corresponds to the JSON property submissionModificationMode
1022 1023 1024 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1022 def submission_modification_mode @submission_modification_mode end |
#title ⇒ String
Title of this course work. The title must be a valid UTF-8 string containing
between 1 and 3000 characters.
Corresponds to the JSON property title
946 947 948 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 946 def title @title end |
#update_time ⇒ String
Timestamp of the most recent change to this course work. Read-only.
Corresponds to the JSON property updateTime
978 979 980 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 978 def update_time @update_time end |
#work_type ⇒ String
Type of this course work. The type is set when the course work is created and
cannot be changed. When creating course work, this must be ASSIGNMENT
.
Corresponds to the JSON property workType
1008 1009 1010 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1008 def work_type @work_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1039 def update!(**args) @course_id = args[:course_id] if args.key?(:course_id) @id = args[:id] if args.key?(:id) @title = args[:title] if args.key?(:title) @description = args[:description] if args.key?(:description) @materials = args[:materials] if args.key?(:materials) @state = args[:state] if args.key?(:state) @alternate_link = args[:alternate_link] if args.key?(:alternate_link) @creation_time = args[:creation_time] if args.key?(:creation_time) @update_time = args[:update_time] if args.key?(:update_time) @due_date = args[:due_date] if args.key?(:due_date) @due_time = args[:due_time] if args.key?(:due_time) @max_points = args[:max_points] if args.key?(:max_points) @work_type = args[:work_type] if args.key?(:work_type) @associated_with_developer = args[:associated_with_developer] if args.key?(:associated_with_developer) @submission_modification_mode = args[:submission_modification_mode] if args.key?(:submission_modification_mode) @assignment = args[:assignment] if args.key?(:assignment) @multiple_choice_question = args[:multiple_choice_question] if args.key?(:multiple_choice_question) end |