Class: Google::Apis::ClassroomV1beta1::Student

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

Student in 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) ⇒ Student


408
409
410
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 408

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

Instance Attribute Details

#course_idString

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


393
394
395
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 393

def course_id
  @course_id
end

#profileGoogle::Apis::ClassroomV1beta1::UserProfile

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


406
407
408
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 406

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 student. The following are supported: * the e-mail address of the user * the string literal "me", indicating that the requesting user Corresponds to the JSON property userId


401
402
403
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 401

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


413
414
415
416
417
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 413

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