Sha256: 22a6717fe1062f6758b717cdb3af81378b16873fccd168ff3715b1ed19deda8e

Contents?: true

Size: 708 Bytes

Versions: 6

Compression:

Stored size: 708 Bytes

Contents

module Fog
  module AzureRM
    class Storage
      # 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

6 entries across 6 versions & 1 rubygems

Version Path
gitlab-fog-azure-rm-2.2.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-2.1.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-2.0.1 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-2.0.0 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.9.1 lib/fog/azurerm/requests/storage/get_object_url.rb
gitlab-fog-azure-rm-1.9.0 lib/fog/azurerm/requests/storage/get_object_url.rb