Class: Google::Apis::ClassroomV1::Teacher
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Teacher
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
Teacher of a course.
Instance Attribute Summary collapse
-
#course_id ⇒ String
Identifier of the course.
-
#profile ⇒ Google::Apis::ClassroomV1::UserProfile
Global information for a user.
-
#user_id ⇒ String
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::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Teacher
Returns a new instance of Teacher
2024 2025 2026 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 2024 def initialize(**args) update!(**args) end |
Instance Attribute Details
#course_id ⇒ String
Identifier of the course.
Read-only.
Corresponds to the JSON property courseId
2007 2008 2009 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 2007 def course_id @course_id end |
#profile ⇒ Google::Apis::ClassroomV1::UserProfile
Global information for a user.
Corresponds to the JSON property profile
2012 2013 2014 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 2012 def profile @profile end |
#user_id ⇒ String
Identifier of the user. When specified as a parameter of a request, this identifier can be one of the following:
- the numeric identifier for the user
- the email address of the user
- the string literal
"me"
, indicating the requesting user Corresponds to the JSON propertyuserId
2022 2023 2024 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 2022 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2029 2030 2031 2032 2033 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 2029 def update!(**args) @course_id = args[:course_id] if args.key?(:course_id) @profile = args[:profile] if args.key?(:profile) @user_id = args[:user_id] if args.key?(:user_id) end |