Skip to content

Commit a32f6ae

Browse files
committed
[README] Update DriveV3 example to use correct attributes
This DriveV3 example attempts to call outdated V2 attributes that no longer exist in V3. - `Google::Apis::DriveV3::FileList#items` no longer exists in V3; it's been renamed to `files`. - `Google::Apis::DriveV3::File#title` no longer exists in V3; it's been renamed to `name`.
1 parent 61779ce commit a32f6ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ drive.authorization = ... # See Googleauth or Signet libraries
2525

2626
# Search for files in Drive (first page only)
2727
files = drive.list_files(q: "title contains 'finances'")
28-
files.items.each do |file|
29-
puts file.title
28+
files.files.each do |file|
29+
puts file.name
3030
end
3131

3232
# Upload a file

0 commit comments

Comments
 (0)