class Google::Apis::ClassroomV1::CourseWorkMaterial

Course work material created by a teacher for students of the course

Attributes

assignee_mode[RW]

Assignee mode of the course work material. If unspecified, the default value is `ALL_STUDENTS`. Corresponds to the JSON property `assigneeMode` @return [String]

course_id[RW]

Identifier of the course. Read-only. Corresponds to the JSON property `courseId` @return [String]

creation_time[RW]

Timestamp when this course work material was created. Read-only. Corresponds to the JSON property `creationTime` @return [String]

creator_user_id[RW]

Identifier for the user that created the course work material. Read-only. Corresponds to the JSON property `creatorUserId` @return [String]

description[RW]

Optional description of this course work material. The text must be a valid UTF-8 string containing no more than 30,000 characters. Corresponds to the JSON property `description` @return [String]

id[RW]

Classroom-assigned identifier of this course work material, unique per course. Read-only. Corresponds to the JSON property `id` @return [String]

individual_students_options[RW]

Assignee details about a coursework/announcement. This field is set if and only if `assigneeMode` is `INDIVIDUAL_STUDENTS`. Corresponds to the JSON property `individualStudentsOptions` @return [Google::Apis::ClassroomV1::IndividualStudentsOptions]

materials[RW]

Additional materials. A course work material must have no more than 20 material items. Corresponds to the JSON property `materials` @return [Array<Google::Apis::ClassroomV1::Material>]

scheduled_time[RW]

Optional timestamp when this course work material is scheduled to be published. Corresponds to the JSON property `scheduledTime` @return [String]

state[RW]

Status of this course work material. If unspecified, the default state is ` DRAFT`. Corresponds to the JSON property `state` @return [String]

title[RW]

Title of this course work material. The title must be a valid UTF-8 string containing between 1 and 3000 characters. Corresponds to the JSON property `title` @return [String]

topic_id[RW]

Identifier for the topic that this course work material is associated with. Must match an existing topic in the course. Corresponds to the JSON property `topicId` @return [String]

update_time[RW]

Timestamp of the most recent change to this course work material. Read-only. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/classroom_v1/classes.rb, line 748
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/classroom_v1/classes.rb, line 753
def update!(**args)
  @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
  @assignee_mode = args[:assignee_mode] if args.key?(:assignee_mode)
  @course_id = args[:course_id] if args.key?(:course_id)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @creator_user_id = args[:creator_user_id] if args.key?(:creator_user_id)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @individual_students_options = args[:individual_students_options] if args.key?(:individual_students_options)
  @materials = args[:materials] if args.key?(:materials)
  @scheduled_time = args[:scheduled_time] if args.key?(:scheduled_time)
  @state = args[:state] if args.key?(:state)
  @title = args[:title] if args.key?(:title)
  @topic_id = args[:topic_id] if args.key?(:topic_id)
  @update_time = args[:update_time] if args.key?(:update_time)
end