Class: Google::Apis::ClassroomV1::DriveFolder

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

Representation of a Google Drive folder.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DriveFolder

Returns a new instance of DriveFolder.



1167
1168
1169
# File 'lib/google/apis/classroom_v1/classes.rb', line 1167

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

Instance Attribute Details

URL that can be used to access the Drive folder. Read-only. Corresponds to the JSON property alternateLink

Returns:

  • (String)


1155
1156
1157
# File 'lib/google/apis/classroom_v1/classes.rb', line 1155

def alternate_link
  @alternate_link
end

#idString

Drive API resource ID. Corresponds to the JSON property id

Returns:

  • (String)


1160
1161
1162
# File 'lib/google/apis/classroom_v1/classes.rb', line 1160

def id
  @id
end

#titleString

Title of the Drive folder. Read-only. Corresponds to the JSON property title

Returns:

  • (String)


1165
1166
1167
# File 'lib/google/apis/classroom_v1/classes.rb', line 1165

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1172
1173
1174
1175
1176
# File 'lib/google/apis/classroom_v1/classes.rb', line 1172

def update!(**args)
  @alternate_link = args[:alternate_link] if args.key?(:alternate_link)
  @id = args[:id] if args.key?(:id)
  @title = args[:title] if args.key?(:title)
end