From 2a7ce68772cd51da23ed62a15740b85ec6f69ac5 Mon Sep 17 00:00:00 2001 From: Gary Tou Date: Sat, 9 Nov 2024 03:09:06 -0800 Subject: [PATCH] fix(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`. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b438089dec7..1d411b37198 100644 --- a/README.md +++ b/README.md @@ -25,8 +25,8 @@ drive.authorization = ... # See Googleauth or Signet libraries # Search for files in Drive (first page only) files = drive.list_files(q: "title contains 'finances'") -files.items.each do |file| - puts file.title +files.files.each do |file| + puts file.name end # Upload a file