class GoogleDrive::Spreadsheet
Public Instance Methods
create_or_recreate_ws(title)
click to toggle source
to delete everything in the worksheet, deleting row by row is too slow
# File lib/model_to_googlesheet/google_drive/spreadsheet.rb, line 10 def create_or_recreate_ws title if ws = worksheet_by_title(title) ws.delete end add_worksheet title end
get_or_create_ws(title)
click to toggle source
# File lib/model_to_googlesheet/google_drive/spreadsheet.rb, line 4 def get_or_create_ws title ws = worksheet_by_title title ws ||= add_worksheet(title) end