Class: Google::Apis::ClassroomV1::CourseMaterial
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CourseMaterial
- 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 material attached to a course as part of a material set.
Instance Attribute Summary collapse
-
#drive_file ⇒ Google::Apis::ClassroomV1::DriveFile
Representation of a Google Drive file.
-
#form ⇒ Google::Apis::ClassroomV1::Form
Google Forms item.
-
#link ⇒ Google::Apis::ClassroomV1::Link
URL item.
-
#you_tube_video ⇒ Google::Apis::ClassroomV1::YouTubeVideo
YouTube video item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CourseMaterial
constructor
A new instance of CourseMaterial.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CourseMaterial
Returns a new instance of CourseMaterial.
431 432 433 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 431 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_file ⇒ Google::Apis::ClassroomV1::DriveFile
Representation of a Google Drive file.
Corresponds to the JSON property driveFile
414 415 416 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 414 def drive_file @drive_file end |
#form ⇒ Google::Apis::ClassroomV1::Form
Google Forms item.
Corresponds to the JSON property form
419 420 421 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 419 def form @form end |
#link ⇒ Google::Apis::ClassroomV1::Link
URL item.
Corresponds to the JSON property link
424 425 426 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 424 def link @link end |
#you_tube_video ⇒ Google::Apis::ClassroomV1::YouTubeVideo
YouTube video item.
Corresponds to the JSON property youTubeVideo
429 430 431 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 429 def you_tube_video @you_tube_video end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
436 437 438 439 440 441 |
# File 'lib/google/apis/classroom_v1/classes.rb', line 436 def update!(**args) @drive_file = args[:drive_file] if args.key?(:drive_file) @form = args[:form] if args.key?(:form) @link = args[:link] if args.key?(:link) @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video) end |