method
new
v8.0.0 -
Show latest stable
- Class:
ActiveStorage::Service::AzureStorageService
new(storage_account_name:, storage_access_key:, container:, public: false, **options)public
No documentation available.
# File activestorage/lib/active_storage/service/azure_storage_service.rb, line 17
def initialize(storage_account_name,, storage_access_key,, container,, public: false, **options)
ActiveStorage.deprecator.warn <<~MSG.squish
`ActiveStorage::Service::AzureStorageService` is deprecated and will be
removed in Rails 8.1.
Please try the `azure-blob` gem instead.
This gem is not maintained by the Rails team, so please test your applications before deploying to production.
MSG
@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