Module: Gcloud::Storage
- Defined in:
- lib/gcloud/storage.rb,
lib/gcloud/storage/file.rb,
lib/gcloud/storage/bucket.rb,
lib/gcloud/storage/errors.rb,
lib/gcloud/storage/project.rb,
lib/gcloud/storage/file/acl.rb,
lib/gcloud/storage/file/list.rb,
lib/gcloud/storage/bucket/acl.rb,
lib/gcloud/storage/connection.rb,
lib/gcloud/storage/bucket/list.rb,
lib/gcloud/storage/credentials.rb,
lib/gcloud/storage/file/verifier.rb
Overview
Defined Under Namespace
Classes: ApiError, Bucket, Connection, Credentials, Error, File, FileVerificationError, Project
Class Method Summary collapse
-
.resumable_threshold ⇒ Object
Retrieve resumable threshold.
-
.resumable_threshold=(new_resumable_threshold) ⇒ Object
Sets a new resumable threshold value.
Class Method Details
.resumable_threshold ⇒ Object
Retrieve resumable threshold. If uploads are larger in size than this value then resumable uploads are used.
The default value is 5 MiB (5,000,000 bytes).
62 63 64 |
# File 'lib/gcloud/storage.rb', line 62 def self.resumable_threshold @@resumable_threshold end |
.resumable_threshold=(new_resumable_threshold) ⇒ Object
Sets a new resumable threshold value.
68 69 70 71 72 73 |
# File 'lib/gcloud/storage.rb', line 68 def self.resumable_threshold= new_resumable_threshold # rubocop:disable Style/ClassVars # Disabled rubocop because this is the best option. @@resumable_threshold = new_resumable_threshold.to_i # rubocop:enable Style/ClassVars end |