Module: PaperclipArchiveProcessor::Extractor

Defined in:
lib/paperclip_archive_processor/extractor.rb

Defined Under Namespace

Classes: ExtractorNotFound, Zip

Class Method Summary collapse

Class Method Details

.extractor_for(content_type) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/paperclip_archive_processor/extractor.rb', line 7

def self.extractor_for(content_type)
  case content_type
  when /zip/ then Zip
  else
    raise ExtractorNotFound, "Cannot load extractor for content type '#{content_type}'"
  end
end