如何在Ruby google_drive gem中读写指定属性?

时间:2019-05-27 14:14:55

标签: ruby google-drive-api

require 'google_drive'

session = GoogleDrive::Session.from_service_account_key 'key.json'
spreadsheet = session.spreadsheet_by_key 'spreadsheet_key'
worksheet = spreadsheet.worksheets.first


worksheet.save

如何在save之前读写工作表属性?
https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets/sheets#gridproperties
我需要读写hideGridlines属性。

0 个答案:

没有答案