Class: Paperclip::Storage::Azure::Environment

Inherits:
Object
  • Object
show all
Defined in:
lib/paperclip/storage/azure/environment.rb

Constant Summary collapse

ENVIRONMENT_SUFFIX =
{
  global: 'core.windows.net',
  cn: 'core.chinacloudapi.cn',
  de: "core.cloudapi.de",
  usgovt: 'core.usgovcloudapi.net'
}

Class Method Summary collapse

Class Method Details

.url_for(account_name, region = nil) ⇒ Object



13
14
15
# File 'lib/paperclip/storage/azure/environment.rb', line 13

def self.url_for(, region = nil)
  "#{}.blob.#{ENVIRONMENT_SUFFIX[region || :global]}"
end