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

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/classroom_v1/classes.rb,
lib/google/apis/classroom_v1/representations.rb,
lib/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Material

Returns a new instance of Material.



1901
1902
1903
# File 'lib/google/apis/classroom_v1/classes.rb', line 1901

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



1884
1885
1886
# File 'lib/google/apis/classroom_v1/classes.rb', line 1884

def drive_file
  @drive_file
end

#formGoogle::Apis::ClassroomV1::Form

Google Forms item. Corresponds to the JSON property form



1889
1890
1891
# File 'lib/google/apis/classroom_v1/classes.rb', line 1889

def form
  @form
end

URL item. Corresponds to the JSON property link



1894
1895
1896
# File 'lib/google/apis/classroom_v1/classes.rb', line 1894

def link
  @link
end

#youtube_videoGoogle::Apis::ClassroomV1::YouTubeVideo

YouTube video item. Corresponds to the JSON property youtubeVideo



1899
1900
1901
# File 'lib/google/apis/classroom_v1/classes.rb', line 1899

def youtube_video
  @youtube_video
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1906
1907
1908
1909
1910
1911
# File 'lib/google/apis/classroom_v1/classes.rb', line 1906

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)
  @youtube_video = args[:youtube_video] if args.key?(:youtube_video)
end