Class: Google::Apis::ClassroomV1::CourseMaterial
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::CourseMaterial
- 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
-
#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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ CourseMaterial
Returns a new instance of CourseMaterial
1184 1185 1186 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1184 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
1167 1168 1169 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1167 def drive_file @drive_file end |
#form ⇒ Google::Apis::ClassroomV1::Form
Google Forms item.
Corresponds to the JSON property form
1177 1178 1179 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1177 def form @form end |
#link ⇒ Google::Apis::ClassroomV1::Link
URL item.
Corresponds to the JSON property link
1182 1183 1184 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1182 def link @link end |
#you_tube_video ⇒ Google::Apis::ClassroomV1::YouTubeVideo
YouTube video item.
Corresponds to the JSON property youTubeVideo
1172 1173 1174 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1172 def you_tube_video @you_tube_video end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1189 1190 1191 1192 1193 1194 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1189 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) @form = args[:form] if args.key?(:form) @link = args[:link] if args.key?(:link) end |