Method: GoogleDrive::Session#wrap_api_file
- Defined in:
- lib/google_drive/session.rb
#wrap_api_file(api_file) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
425 426 427 428 429 430 431 432 433 434 |
# File 'lib/google_drive/session.rb', line 425 def wrap_api_file(api_file) case api_file.mime_type when 'application/vnd.google-apps.folder' return Collection.new(self, api_file) when 'application/vnd.google-apps.spreadsheet' return Spreadsheet.new(self, api_file) else return File.new(self, api_file) end end |