Class: Google::Apis::ClassroomV1beta1::Teacher

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

process_value, #to_h

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_idString

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

Returns:

  • (String)


333
334
335
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 333

def course_id
  @course_id
end

#profileGoogle::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_idString

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

Returns:

  • (String)


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