Class: Google::Apis::ClassroomV1::Student
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Student
- 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
Student in a course.
Instance Attribute Summary collapse
-
#course_id ⇒ String
Identifier of the course.
-
#profile ⇒ Google::Apis::ClassroomV1::UserProfile
Global information for a user.
-
#student_work_folder ⇒ Google::Apis::ClassroomV1::DriveFolder
Representation of a Google Drive folder.
-
#user_id ⇒ String
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.
Constructor Details
#initialize(**args) ⇒ Student
Returns a new instance of Student.
2455 2456 2457 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#course_id ⇒ String
Identifier of the course. Read-only.
Corresponds to the JSON property courseId
2435 2436 2437 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2435 def course_id @course_id end |
#profile ⇒ Google::Apis::ClassroomV1::UserProfile
Global information for a user.
Corresponds to the JSON property profile
2440 2441 2442 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2440 def profile @profile end |
#student_work_folder ⇒ Google::Apis::ClassroomV1::DriveFolder
Representation of a Google Drive folder.
Corresponds to the JSON property studentWorkFolder
2445 2446 2447 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2445 def student_work_folder @student_work_folder 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 property userId
2453 2454 2455 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2453 def user_id @user_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2460 2461 2462 2463 2464 2465 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 2460 def update!(**args) @course_id = args[:course_id] if args.key?(:course_id) @profile = args[:profile] if args.key?(:profile) @student_work_folder = args[:student_work_folder] if args.key?(:student_work_folder) @user_id = args[:user_id] if args.key?(:user_id) end |