Sha256: d258c8e7094487f10a90738198ee2212f4d9f7c03226813d165b548f70211441

Contents?: true

Size: 708 Bytes

Versions: 7

Compression:

Stored size: 708 Bytes

Contents

module Fog
  module Storage
    class AzureRM
      # This class provides the actual implemention for service calls.
      class Real
        # Get a public blob url from Azure blob storage
        # This is to make this library compatible with CarrierWave.
        def get_object_url(container_name, blob_name, expires, options = {})
          get_blob_https_url(container_name, blob_name, expires, options)
        end
      end

      # This class provides the mock implementation for unit tests.
      class Mock
        def get_object_url(container_name, blob_name, expires, options = {})
          get_blob_https_url(container_name, blob_name, expires, options)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
gitlab-fog-azure-rm-1.8.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.7.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.6.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.5.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.4.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.3.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.2.0 lib/fog/azurerm/requests/storage/get_object_url.rb