class Google::Apis::ClassroomV1::Announcement
Announcement
created by a teacher for students of the course
Attributes
Absolute link to this announcement in the Classroom web UI. This is only populated if `state` is `PUBLISHED`. Read-only. Corresponds to the JSON property `alternateLink` @return [String]
Assignee mode of the announcement. If unspecified, the default value is ` ALL_STUDENTS`. Corresponds to the JSON property `assigneeMode` @return [String]
Identifier of the course. Read-only. Corresponds to the JSON property `courseId` @return [String]
Timestamp when this announcement was created. Read-only. Corresponds to the JSON property `creationTime` @return [String]
Identifier for the user that created the announcement. Read-only. Corresponds to the JSON property `creatorUserId` @return [String]
Classroom-assigned identifier of this announcement, unique per course. Read- only. Corresponds to the JSON property `id` @return [String]
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]
Additional materials. Announcements must have no more than 20 material items. Corresponds to the JSON property `materials` @return [Array<Google::Apis::ClassroomV1::Material>]
Optional timestamp when this announcement is scheduled to be published. Corresponds to the JSON property `scheduledTime` @return [String]
Status of this announcement. If unspecified, the default state is `DRAFT`. Corresponds to the JSON property `state` @return [String]
Description of this announcement. The text must be a valid UTF-8 string containing no more than 30,000 characters. Corresponds to the JSON property `text` @return [String]
Timestamp of the most recent change to this announcement. Read-only. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/classroom_v1/classes.rb, line 94 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/classroom_v1/classes.rb, line 99 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) @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) @text = args[:text] if args.key?(:text) @update_time = args[:update_time] if args.key?(:update_time) end