Class: Google::Apis::ClassroomV1::Student

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

Overview

Student in a course.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Student

Returns a new instance of Student.



822
823
824
# File 'generated/google/apis/classroom_v1/classes.rb', line 822

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)


802
803
804
# File 'generated/google/apis/classroom_v1/classes.rb', line 802

def course_id
  @course_id
end

#profileGoogle::Apis::ClassroomV1::UserProfile

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



815
816
817
# File 'generated/google/apis/classroom_v1/classes.rb', line 815

def profile
  @profile
end

#student_work_folderGoogle::Apis::ClassroomV1::DriveFolder

Representation of a Google Drive folder. Corresponds to the JSON property studentWorkFolder



820
821
822
# File 'generated/google/apis/classroom_v1/classes.rb', line 820

def student_work_folder
  @student_work_folder
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)


810
811
812
# File 'generated/google/apis/classroom_v1/classes.rb', line 810

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



827
828
829
830
831
832
# File 'generated/google/apis/classroom_v1/classes.rb', line 827

def update!(**args)
  @course_id = args[:course_id] if args.key?(:course_id)
  @user_id = args[:user_id] if args.key?(:user_id)
  @profile = args[:profile] if args.key?(:profile)
  @student_work_folder = args[:student_work_folder] if args.key?(:student_work_folder)
end