Class: Google::Apis::ClassroomV1::Topic

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb

Overview

Topic created by a teacher for the course

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Topic

Returns a new instance of Topic



2104
2105
2106
# File 'generated/google/apis/classroom_v1/classes.rb', line 2104

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#course_idString

Identifier of the course. Read-only. Corresponds to the JSON property courseId

Returns:

  • (String)


2082
2083
2084
# File 'generated/google/apis/classroom_v1/classes.rb', line 2082

def course_id
  @course_id
end

#nameString

The name of the topic, generated by the user. Leading and trailing whitespaces, if any, will be trimmed. Also, multiple consecutive whitespaces will be collapsed into one inside the name. Topic names are case sensitive, and must be no longer than 100 characters. Corresponds to the JSON property name

Returns:

  • (String)


2090
2091
2092
# File 'generated/google/apis/classroom_v1/classes.rb', line 2090

def name
  @name
end

#topic_idString

Unique identifier for the topic. Read-only. Corresponds to the JSON property topicId

Returns:

  • (String)


2096
2097
2098
# File 'generated/google/apis/classroom_v1/classes.rb', line 2096

def topic_id
  @topic_id
end

#update_timeString

The time the topic was last updated by the system. Read-only. Corresponds to the JSON property updateTime

Returns:

  • (String)


2102
2103
2104
# File 'generated/google/apis/classroom_v1/classes.rb', line 2102

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2109
2110
2111
2112
2113
2114
# File 'generated/google/apis/classroom_v1/classes.rb', line 2109

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