Class: Google::Apis::ClassroomV1::CourseMaterial

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 material attached to a course as part of a material set.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CourseMaterial

Returns a new instance of CourseMaterial.



649
650
651
# File 'lib/google/apis/classroom_v1/classes.rb', line 649

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

Instance Attribute Details

#drive_fileGoogle::Apis::ClassroomV1::DriveFile

Representation of a Google Drive file. Corresponds to the JSON property driveFile



632
633
634
# File 'lib/google/apis/classroom_v1/classes.rb', line 632

def drive_file
  @drive_file
end

#formGoogle::Apis::ClassroomV1::Form

Google Forms item. Corresponds to the JSON property form



637
638
639
# File 'lib/google/apis/classroom_v1/classes.rb', line 637

def form
  @form
end

URL item. Corresponds to the JSON property link



642
643
644
# File 'lib/google/apis/classroom_v1/classes.rb', line 642

def link
  @link
end

#you_tube_videoGoogle::Apis::ClassroomV1::YouTubeVideo

YouTube video item. Corresponds to the JSON property youTubeVideo



647
648
649
# File 'lib/google/apis/classroom_v1/classes.rb', line 647

def you_tube_video
  @you_tube_video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



654
655
656
657
658
659
# File 'lib/google/apis/classroom_v1/classes.rb', line 654

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