Class: Locomotive::Liquid::Drops::Uploader
- Inherits:
-
Base
- Object
- Liquid::Drop
- Base
- Locomotive::Liquid::Drops::Uploader
show all
- Defined in:
- lib/locomotive/liquid/drops/uploader.rb
Instance Method Summary
collapse
Methods inherited from Base
#id, #initialize, liquify
Instance Method Details
#filename ⇒ Object
14
15
16
|
# File 'lib/locomotive/liquid/drops/uploader.rb', line 14
def filename
File.basename(@_source.url)
end
|
#url ⇒ Object
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
|