12 lines
246 B
Ruby
12 lines
246 B
Ruby
|
class RemoteDownloader
|
||
|
DEST_URL = "https://storage.apientreprise.fr/" + CarrierWave::Uploader::Base.fog_directory + '/'
|
||
|
|
||
|
def initialize(filename)
|
||
|
@filename = filename
|
||
|
end
|
||
|
|
||
|
def url
|
||
|
@url ||= File.join(DEST_URL, @filename)
|
||
|
end
|
||
|
end
|