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

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

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

Returns a new instance of CourseMaterial.


246
247
248
# File 'generated/google/apis/classroom_v1/classes.rb', line 246

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


229
230
231
# File 'generated/google/apis/classroom_v1/classes.rb', line 229

def drive_file
  @drive_file
end

#formGoogle::Apis::ClassroomV1::Form

Google Forms item. Corresponds to the JSON property form


244
245
246
# File 'generated/google/apis/classroom_v1/classes.rb', line 244

def form
  @form
end

URL item. Corresponds to the JSON property link


239
240
241
# File 'generated/google/apis/classroom_v1/classes.rb', line 239

def link
  @link
end

#you_tube_videoGoogle::Apis::ClassroomV1::YouTubeVideo

YouTube video item. Corresponds to the JSON property youTubeVideo


234
235
236
# File 'generated/google/apis/classroom_v1/classes.rb', line 234

def you_tube_video
  @you_tube_video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


251
252
253
254
255
256
# File 'generated/google/apis/classroom_v1/classes.rb', line 251

def update!(**args)
  @drive_file = args[:drive_file] if args.key?(:drive_file)
  @you_tube_video = args[:you_tube_video] if args.key?(:you_tube_video)
  @link = args[:link] if args.key?(:link)
  @form = args[:form] if args.key?(:form)
end