Class: Google::Apis::ClassroomV1::Teacher

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

Overview

Teacher of a course.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Teacher

Returns a new instance of Teacher.



2465
2466
2467
# File 'lib/google/apis/classroom_v1/classes.rb', line 2465

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)


2450
2451
2452
# File 'lib/google/apis/classroom_v1/classes.rb', line 2450

def course_id
  @course_id
end

#profileGoogle::Apis::ClassroomV1::UserProfile

Global information for a user. Corresponds to the JSON property profile



2455
2456
2457
# File 'lib/google/apis/classroom_v1/classes.rb', line 2455

def profile
  @profile
end

#user_idString

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 property userId

Returns:

  • (String)


2463
2464
2465
# File 'lib/google/apis/classroom_v1/classes.rb', line 2463

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2470
2471
2472
2473
2474
# File 'lib/google/apis/classroom_v1/classes.rb', line 2470

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