Class: Google::Apis::ClassroomV1::SharedDriveFile

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

Drive file that is used as material for course work.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SharedDriveFile

Returns a new instance of SharedDriveFile.



2367
2368
2369
# File 'lib/google/apis/classroom_v1/classes.rb', line 2367

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



2360
2361
2362
# File 'lib/google/apis/classroom_v1/classes.rb', line 2360

def drive_file
  @drive_file
end

#share_modeString

Mechanism by which students access the Drive item. Corresponds to the JSON property shareMode

Returns:

  • (String)


2365
2366
2367
# File 'lib/google/apis/classroom_v1/classes.rb', line 2365

def share_mode
  @share_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2372
2373
2374
2375
# File 'lib/google/apis/classroom_v1/classes.rb', line 2372

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