Class: Paperclip::Storage::Azure::Environment
- Inherits:
-
Object
- Object
- Paperclip::Storage::Azure::Environment
- 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(account_name, region = nil) "#{account_name}.blob.#{ENVIRONMENT_SUFFIX[region || :global]}" end |