class Google::Apis::ClassroomV1::Topic

Topic created by a teacher for the course

Attributes

course_id[RW]

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

name[RW]

The name of the topic, generated by the user. Leading and trailing whitespaces, if any, are trimmed. Also, multiple consecutive whitespaces are collapsed into one inside the name. The result must be a non-empty string. Topic names are case sensitive, and must be no longer than 100 characters. Corresponds to the JSON property `name` @return [String]

topic_id[RW]

Unique identifier for the topic. Read-only. Corresponds to the JSON property `topicId` @return [String]

update_time[RW]

The time the topic was last updated by the system. 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 2166
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 2171
def update!(**args)
  @course_id = args[:course_id] if args.key?(:course_id)
  @name = args[:name] if args.key?(:name)
  @topic_id = args[:topic_id] if args.key?(:topic_id)
  @update_time = args[:update_time] if args.key?(:update_time)
end