Class: Google::Apis::ClassroomV1beta1::Student
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1beta1::Student
- 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
-
#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) ⇒ Student
constructor
A new instance of Student.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Student
Returns a new instance of Student.
408 409 410 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 408 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
393 394 395 |
# File 'generated/google/apis/classroom_v1beta1/classes.rb', line 393 def course_id @course_id end |
#profile ⇒ Google::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_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 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 |