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.



2745
2746
2747
# File 'lib/google/apis/classroom_v1/classes.rb', line 2745

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

Instance Attribute Details

#course_idString

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

Returns:

  • (String)


2733
2734
2735
# File 'lib/google/apis/classroom_v1/classes.rb', line 2733

def course_id
  @course_id
end

#idString

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

Returns:

  • (String)


2738
2739
2740
# File 'lib/google/apis/classroom_v1/classes.rb', line 2738

def id
  @id
end

#titleString

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

Returns:

  • (String)


2743
2744
2745
# File 'lib/google/apis/classroom_v1/classes.rb', line 2743

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2750
2751
2752
2753
2754
# File 'lib/google/apis/classroom_v1/classes.rb', line 2750

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