Class: Google::Apis::ClassroomV1::ModifyIndividualStudentsOptions

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

Contains fields to add or remove students from a course work or announcement where the assigneeMode is set to INDIVIDUAL_STUDENTS.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ModifyIndividualStudentsOptions

Returns a new instance of ModifyIndividualStudentsOptions.



2107
2108
2109
# File 'lib/google/apis/classroom_v1/classes.rb', line 2107

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

Instance Attribute Details

#add_student_idsArray<String>

IDs of students to be added as having access to this coursework/announcement. Corresponds to the JSON property addStudentIds

Returns:

  • (Array<String>)


2099
2100
2101
# File 'lib/google/apis/classroom_v1/classes.rb', line 2099

def add_student_ids
  @add_student_ids
end

#remove_student_idsArray<String>

IDs of students to be removed from having access to this coursework/ announcement. Corresponds to the JSON property removeStudentIds

Returns:

  • (Array<String>)


2105
2106
2107
# File 'lib/google/apis/classroom_v1/classes.rb', line 2105

def remove_student_ids
  @remove_student_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2112
2113
2114
2115
# File 'lib/google/apis/classroom_v1/classes.rb', line 2112

def update!(**args)
  @add_student_ids = args[:add_student_ids] if args.key?(:add_student_ids)
  @remove_student_ids = args[:remove_student_ids] if args.key?(:remove_student_ids)
end