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

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

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

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

#to_json

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ModifyIndividualStudentsOptions

Returns a new instance of ModifyIndividualStudentsOptions



1554
1555
1556
# File 'generated/google/apis/classroom_v1/classes.rb', line 1554

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>)


1546
1547
1548
# File 'generated/google/apis/classroom_v1/classes.rb', line 1546

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>)


1552
1553
1554
# File 'generated/google/apis/classroom_v1/classes.rb', line 1552

def remove_student_ids
  @remove_student_ids
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1559
1560
1561
1562
# File 'generated/google/apis/classroom_v1/classes.rb', line 1559

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