Method: GoogleDrive::Session#spreadsheet_by_title

Defined in:
lib/google_drive/session.rb

#spreadsheet_by_title(title) ⇒ Object

Returns GoogleDrive::Spreadsheet with given title. Returns nil if not found. If multiple spreadsheets with the title are found, returns one of them.



285
286
287
# File 'lib/google_drive/session.rb', line 285

def spreadsheet_by_title(title)
  spreadsheets(q: ['name = ?', title], page_size: 1)[0]
end