Class: Google::Apis::ClassroomV1::CourseMaterialSet

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

A set of materials that appears on the "About" page of the course. These materials might include a syllabus, schedule, or other background information relating to the course as a whole.

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

Returns a new instance of CourseMaterialSet



808
809
810
# File 'generated/google/apis/classroom_v1/classes.rb', line 808

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

Instance Attribute Details

#materialsArray<Google::Apis::ClassroomV1::CourseMaterial>

Materials attached to this set. Corresponds to the JSON property materials



806
807
808
# File 'generated/google/apis/classroom_v1/classes.rb', line 806

def materials
  @materials
end

#titleString

Title for this set. Corresponds to the JSON property title

Returns:

  • (String)


801
802
803
# File 'generated/google/apis/classroom_v1/classes.rb', line 801

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



813
814
815
816
# File 'generated/google/apis/classroom_v1/classes.rb', line 813

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