class method
self.new
Ruby on Rails 7.0.10
Since v5.2.8.1 Last seen in v8.0.4Signature
self.new(storage_account_name:, storage_access_key:, container:, public: false, **options)
No documentation comment.
Parameters
-
storage_account_namekeyreq -
storage_access_keykeyreq -
containerkeyreq -
publickey = false -
optionskeyrest
Source
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 15
def initialize(storage_account_name:, storage_access_key:, container:, public: false, **options)
@client = Azure::Storage::Blob::BlobService.create(storage_account_name: storage_account_name, storage_access_key: storage_access_key, **options)
@signer = Azure::Storage::Common::Core::Auth::SharedAccessSignature.new(storage_account_name, storage_access_key)
@container = container
@public = public
end
Defined in activestorage/lib/active_storage/service/azure_storage_service.rb line 15
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Service::AzureStorageService