Class: Google::Apis::ClassroomV1::Material

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

Material attached to course work. When creating attachments, only the Link field may be specified.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Material

Returns a new instance of Material.



1078
1079
1080
# File 'generated/google/apis/classroom_v1/classes.rb', line 1078

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#drive_fileGoogle::Apis::ClassroomV1::SharedDriveFile

Drive file that is used as material for course work. Corresponds to the JSON property driveFile



1061
1062
1063
# File 'generated/google/apis/classroom_v1/classes.rb', line 1061

def drive_file
  @drive_file
end

#formGoogle::Apis::ClassroomV1::Form

Google Forms item. Corresponds to the JSON property form



1076
1077
1078
# File 'generated/google/apis/classroom_v1/classes.rb', line 1076

def form
  @form
end

URL item. Corresponds to the JSON property link



1071
1072
1073
# File 'generated/google/apis/classroom_v1/classes.rb', line 1071

def link
  @link
end

#youtube_videoGoogle::Apis::ClassroomV1::YouTubeVideo

YouTube video item. Corresponds to the JSON property youtubeVideo



1066
1067
1068
# File 'generated/google/apis/classroom_v1/classes.rb', line 1066

def youtube_video
  @youtube_video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1083
1084
1085
1086
1087
1088
# File 'generated/google/apis/classroom_v1/classes.rb', line 1083

def update!(**args)
  @drive_file = args[:drive_file] if args.key?(:drive_file)
  @youtube_video = args[:youtube_video] if args.key?(:youtube_video)
  @link = args[:link] if args.key?(:link)
  @form = args[:form] if args.key?(:form)
end