Method: GoogleDrive::Session#create_spreadsheet

Defined in:
lib/google_drive/session.rb

#create_spreadsheet(title = 'Untitled') ⇒ Object

Creates new spreadsheet and returns the new GoogleDrive::Spreadsheet.

e.g.

session.create_spreadsheet("My new sheet")


362
363
364
365
366
367
368
369
# File 'lib/google_drive/session.rb', line 362

def create_spreadsheet(title = 'Untitled')
   = {
    name:    title,
    mime_type: 'application/vnd.google-apps.spreadsheet'
  }
  file = self.drive.create_file(, fields: '*')
  wrap_api_file(file)
end