Class: Google::Apis::ClassroomV1::StudentGroup

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

A student group in a course.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StudentGroup

Returns a new instance of StudentGroup.



2771
2772
2773
# File 'lib/google/apis/classroom_v1/classes.rb', line 2771

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

Instance Attribute Details

#course_idString

The identifier of the course. Corresponds to the JSON property courseId

Returns:

  • (String)


2759
2760
2761
# File 'lib/google/apis/classroom_v1/classes.rb', line 2759

def course_id
  @course_id
end

#idString

The identifier of the student group. Corresponds to the JSON property id

Returns:

  • (String)


2764
2765
2766
# File 'lib/google/apis/classroom_v1/classes.rb', line 2764

def id
  @id
end

#titleString

The title of the student group. Corresponds to the JSON property title

Returns:

  • (String)


2769
2770
2771
# File 'lib/google/apis/classroom_v1/classes.rb', line 2769

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2776
2777
2778
2779
2780
# File 'lib/google/apis/classroom_v1/classes.rb', line 2776

def update!(**args)
  @course_id = args[:course_id] if args.key?(:course_id)
  @id = args[:id] if args.key?(:id)
  @title = args[:title] if args.key?(:title)
end