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

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

Drive file that is used as material for course work.

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) ⇒ SharedDriveFile

Returns a new instance of SharedDriveFile



58
59
60
# File 'generated/google/apis/classroom_v1/classes.rb', line 58

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



56
57
58
# File 'generated/google/apis/classroom_v1/classes.rb', line 56

def drive_file
  @drive_file
end

#share_modeString

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

Returns:

  • (String)


51
52
53
# File 'generated/google/apis/classroom_v1/classes.rb', line 51

def share_mode
  @share_mode
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



63
64
65
66
# File 'generated/google/apis/classroom_v1/classes.rb', line 63

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