module Neutrino::Uploader
Attributes
cached[R]
storage[W]
Public Instance Methods
cache(file)
click to toggle source
# File lib/neutrino/uploader.rb, line 27 def cache(file) @cached = file end
filename()
click to toggle source
# File lib/neutrino/uploader.rb, line 20 def filename end
storage()
click to toggle source
# File lib/neutrino/uploader.rb, line 13 def storage @storage ||= Neutrino.storage.new(self) end
store_dir()
click to toggle source
# File lib/neutrino/uploader.rb, line 17 def store_dir end
store_path(for_file = filename)
click to toggle source
# File lib/neutrino/uploader.rb, line 23 def store_path(for_file = filename) File.join([store_dir, for_file].compact) end