Sha256: 18d2aad7f999cb6bc50a182414040fdd8b1d1985d9069c3bb074c54a456b607d
Contents?: true
Size: 1.18 KB
Versions: 31
Compression:
Stored size: 1.18 KB
Contents
module CarrierWave module Storage ## # This file serves mostly as a specification for Storage engines. There is no requirement # that storage engines must be a subclass of this class. # class Abstract attr_reader :uploader def initialize(uploader) @uploader = uploader end def identifier uploader.filename end def store!(file) end def retrieve!(identifier) end def cache!(new_file) raise NotImplementedError.new("Need to implement #cache! if you want to use #{self.class.name} as a cache storage.") end def retrieve_from_cache!(identifier) raise NotImplementedError.new("Need to implement #retrieve_from_cache! if you want to use #{self.class.name} as a cache storage.") end def delete_dir!(path) raise NotImplementedError.new("Need to implement #delete_dir! if you want to use #{self.class.name} as a cache storage.") end def clean_cache!(seconds) raise NotImplementedError.new("Need to implement #clean_cache! if you want to use #{self.class.name} as a cache storage.") end end # Abstract end # Storage end # CarrierWave
Version data entries
31 entries across 31 versions & 3 rubygems