lib/lt/lcms/lesson/downloader/pdf.rb
# frozen_string_literal: true
module Lt
module Lcms
module Lesson
module Downloader
class PDF < Base
MIME_TYPE = 'application/pdf'
def self.gdoc_file_url(id)
"https://docs.google.com/file/d/#{id}"
end
def pdf_content
service.get_file(file_id, download_dest: StringIO.new, supports_all_drives: true).string
end
end
end
end
end
end