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.



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

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

Instance Attribute Details

#course_idString

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

Returns:

  • (String)


2757
2758
2759
# File 'lib/google/apis/classroom_v1/classes.rb', line 2757

def course_id
  @course_id
end

#idString

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

Returns:

  • (String)


2762
2763
2764
# File 'lib/google/apis/classroom_v1/classes.rb', line 2762

def id
  @id
end

#titleString

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

Returns:

  • (String)


2767
2768
2769
# File 'lib/google/apis/classroom_v1/classes.rb', line 2767

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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