Class: Fog::Backblaze::Storage::Real
- Inherits:
-
Object
- Object
- Fog::Backblaze::Storage::Real
- Defined in:
- lib/active_storage/service/backblaze_service.rb
Instance Method Summary collapse
Instance Method Details
#b2_get_upload_url(bucket_name) ⇒ Object
113 114 115 116 117 118 119 120 |
# File 'lib/active_storage/service/backblaze_service.rb', line 113 def b2_get_upload_url(bucket_name) upload_url = @token_cache.fetch("upload_url/#{bucket_name}") do bucket_id = _get_bucket_id!(bucket_name) result = b2_command(:b2_get_upload_url, body: {bucketId: bucket_id}) result.json end upload_url end |