Class: Locomotive::Liquid::Drops::Uploader

Inherits:
Base
  • Object
show all
Defined in:
lib/locomotive/liquid/drops/uploader.rb

Instance Method Summary collapse

Methods inherited from Base

#id, #initialize, liquify

Constructor Details

This class inherits a constructor from Locomotive::Liquid::Drops::Base

Instance Method Details

#filenameObject



14
15
16
# File 'lib/locomotive/liquid/drops/uploader.rb', line 14

def filename
  File.basename(@_source.url)
end

#urlObject



8
9
10
11
12
# File 'lib/locomotive/liquid/drops/uploader.rb', line 8

def url
  url, timestamp = @_source.url, @_source.model.updated_at.to_i

  @context.registers[:asset_host].compute(url, timestamp)
end