Class: Google::Apis::ClassroomV1::Attachment

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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attachment

Returns a new instance of Attachment.



183
184
185
# File 'generated/google/apis/classroom_v1/classes.rb', line 183

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



166
167
168
# File 'generated/google/apis/classroom_v1/classes.rb', line 166

def drive_file
  @drive_file
end

#formGoogle::Apis::ClassroomV1::Form

Google Forms item. Corresponds to the JSON property form



171
172
173
# File 'generated/google/apis/classroom_v1/classes.rb', line 171

def form
  @form
end

URL item. Corresponds to the JSON property link



176
177
178
# File 'generated/google/apis/classroom_v1/classes.rb', line 176

def link
  @link
end

#you_tube_videoGoogle::Apis::ClassroomV1::YouTubeVideo

YouTube video item. Corresponds to the JSON property youTubeVideo



181
182
183
# File 'generated/google/apis/classroom_v1/classes.rb', line 181

def you_tube_video
  @you_tube_video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



188
189
190
191
192
193
# File 'generated/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