Class: Mastiff::NullUploader

Inherits:
Object
  • Object
show all
Defined in:
lib/mastiff/null_uploader.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.delete(filename) ⇒ Object



4
5
6
7
8
# File 'lib/mastiff/null_uploader.rb', line 4

def self.delete(filename)
   return if filename.blank?
   filepath = File.join(new.store_dir, filename)
   File.delete(filepath) if File.exists?(filepath)
end

.flushObject



9
10
11
12
# File 'lib/mastiff/null_uploader.rb', line 9

def self.flush
  puts 'Doing nothing'
  return nil
end

Instance Method Details

#store_dirObject



13
14
15
# File 'lib/mastiff/null_uploader.rb', line 13

def store_dir
  return '/tmp'
end

#store_mime(fname, blob) ⇒ Object



16
17
18
# File 'lib/mastiff/null_uploader.rb', line 16

def store_mime(fname, blob)
  return nil
end