Method: Clickstream::Compressor.unzip
- Defined in:
- lib/clickstream/compressor.rb
.unzip(source, content_encoding) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/clickstream/compressor.rb', line 11 def self.unzip(source, content_encoding) case content_encoding when 'gzip' then decompress(source) when 'deflate' then inflate(source) else source end end |