class Google::Apis::ClassroomV1::Attachment

Attachment added to student assignment work. When creating attachments, setting the `form` field is not supported.

Attributes

drive_file[RW]

Representation of a Google Drive file. Corresponds to the JSON property `driveFile` @return [Google::Apis::ClassroomV1::DriveFile]

form[RW]

Google Forms item. Corresponds to the JSON property `form` @return [Google::Apis::ClassroomV1::Form]

you_tube_video[RW]

YouTube video item. Corresponds to the JSON property `youTubeVideo` @return [Google::Apis::ClassroomV1::YouTubeVideo]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/classroom_v1/classes.rb, line 183
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/classroom_v1/classes.rb, line 188
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