instance method
download_chunk
Ruby on Rails 6.1.7.10
Since v5.2.8.1Signature
download_chunk(key, range)
No documentation comment.
Parameters
-
keyreq -
rangereq
Source
# File activestorage/lib/active_storage/service/gcs_service.rb, line 51
def download_chunk(key, range)
instrument :download_chunk, key: key, range: range do
file_for(key).download(range: range).string
rescue Google::Cloud::NotFoundError
raise ActiveStorage::FileNotFoundError
end
end
Defined in activestorage/lib/active_storage/service/gcs_service.rb line 51
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::GCSService