Class: Google::Apis::ClassroomV1::Attachment
- Inherits:
-
Object
- Object
- Google::Apis::ClassroomV1::Attachment
- 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, only the Link field may be specified.
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) ⇒ Attachment
constructor
A new instance of Attachment.
-
#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) ⇒ Attachment
Returns a new instance of Attachment.
1435 1436 1437 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1435 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
1418 1419 1420 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1418 def drive_file @drive_file end |
#form ⇒ Google::Apis::ClassroomV1::Form
Google Forms item.
Corresponds to the JSON property form
1433 1434 1435 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1433 def form @form end |
#link ⇒ Google::Apis::ClassroomV1::Link
URL item.
Corresponds to the JSON property link
1428 1429 1430 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1428 def link @link end |
#you_tube_video ⇒ Google::Apis::ClassroomV1::YouTubeVideo
YouTube video item.
Corresponds to the JSON property youTubeVideo
1423 1424 1425 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1423 def you_tube_video @you_tube_video end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1440 1441 1442 1443 1444 1445 |
# File 'generated/google/apis/classroom_v1/classes.rb', line 1440 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 |