Class: Google::Apis::ClassroomV1beta1::Teacher
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1beta1::Teacher
- Includes:
- Google::Apis::Core::Hashable
- Defined in:
- generated/google/apis/classroom_v1beta1/classes.rb,
generated/google/apis/classroom_v1beta1/representations.rb,
generated/google/apis/classroom_v1beta1/representations.rb
Overview
Teacher of a course.
Instance Attribute Summary collapse
-
#course_id ⇒ String
Unique identifier of the course.
-
#profile ⇒ Google::Apis::ClassroomV1beta1::UserProfile
Global information for a user.
-
#user_id ⇒ String
The identifier of the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Teacher
constructor
A new instance of Teacher.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Teacher
Returns a new instance of Teacher.
348 349 350 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 348 def initialize(**args) update!(**args) end |
Instance Attribute Details
#course_id ⇒ String
Unique identifier of the course. Read-only
Corresponds to the JSON property courseId
333 334 335 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 333 def course_id @course_id end |
#profile ⇒ Google::Apis::ClassroomV1beta1::UserProfile
Global information for a user.
Corresponds to the JSON property profile
346 347 348 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 346 def profile @profile end |
#user_id ⇒ String
The identifier of the user. When specified as a parameter of request, this
field may be set to an alias that identifies the teacher. The following are
supported: * the e-mail address of the user * the string literal "me"
,
indicating the requesting user
Corresponds to the JSON property userId
341 342 343 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 341 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
353 354 355 356 357 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 353 def update!(**args) @course_id = args[:course_id] unless args[:course_id].nil? @user_id = args[:user_id] unless args[:user_id].nil? @profile = args[:profile] unless args[:profile].nil? end |