Method: ActiveStorage::Service::AzureStorageService#initialize
- Defined in:
- activestorage/lib/active_storage/service/azure_storage_service.rb
#initialize(storage_account_name:, storage_access_key:, container:, public: false, **options) ⇒ AzureStorageService
Returns a new instance of AzureStorageService.
17 18 19 20 21 22 |
# File 'activestorage/lib/active_storage/service/azure_storage_service.rb', line 17 def initialize(storage_account_name:, storage_access_key:, container:, public: false, **) @client = Azure::Storage::Blob::BlobService.create(storage_account_name: storage_account_name, storage_access_key: storage_access_key, **) @signer = Azure::Storage::Common::Core::Auth::SharedAccessSignature.new(storage_account_name, storage_access_key) @container = container @public = public end |