Class: MdliveShared::StaticAssets

Inherits:
Object
  • Object
show all
Defined in:
lib/mdlive_shared/static_assets.rb

Class Method Summary collapse

Class Method Details

.cdn_urlObject



7
8
9
# File 'lib/mdlive_shared/static_assets.rb', line 7

def cdn_url
  "https://mdlive.azureedge.net"
end

.containerObject



11
12
13
# File 'lib/mdlive_shared/static_assets.rb', line 11

def container
  "affiliations-prod"
end

.get_url(filename) ⇒ Object



3
4
5
# File 'lib/mdlive_shared/static_assets.rb', line 3

def get_url(filename)
  "#{cdn_url}/#{container}/static_asset/#{filename}"
end