Class: Google::Apis::ClassroomV1::Material
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Material
- Defined in:
- generated/google/apis/classroom_v1/classes.rb,
generated/google/apis/classroom_v1/representations.rb,
generated/google/apis/classroom_v1/representations.rb
Overview
Material attached to course work.
When creating attachments, setting the form field is not supported.
Instance Attribute Summary collapse
-
#drive_file ⇒ Google::Apis::ClassroomV1::SharedDriveFile
Drive file that is used as material for course work.
-
#form ⇒ Google::Apis::ClassroomV1::Form
Google Forms item.
-
#link ⇒ Google::Apis::ClassroomV1::Link
URL item.
-
#youtube_video ⇒ Google::Apis::ClassroomV1::YouTubeVideo
YouTube video item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Material
constructor
A new instance of Material.
-
#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) ⇒ Material
Returns a new instance of Material
580 581 582 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 580 def initialize(**args) update!(**args) end |
Instance Attribute Details
#drive_file ⇒ Google::Apis::ClassroomV1::SharedDriveFile
Drive file that is used as material for course work.
Corresponds to the JSON property driveFile
568 569 570 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 568 def drive_file @drive_file end |
#form ⇒ Google::Apis::ClassroomV1::Form
Google Forms item.
Corresponds to the JSON property form
573 574 575 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 573 def form @form end |
#link ⇒ Google::Apis::ClassroomV1::Link
URL item.
Corresponds to the JSON property link
578 579 580 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 578 def link @link end |
#youtube_video ⇒ Google::Apis::ClassroomV1::YouTubeVideo
YouTube video item.
Corresponds to the JSON property youtubeVideo
563 564 565 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 563 def youtube_video @youtube_video end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
585 586 587 588 589 590 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 585 def update!(**args) @youtube_video = args[:youtube_video] if args.key?(:youtube_video) @drive_file = args[:drive_file] if args.key?(:drive_file) @form = args[:form] if args.key?(:form) @link = args[:link] if args.key?(:link) end |