HabitatMap/AirCasting

View on GitHub
lib/aircasting/gzip.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'zlib'

module AirCasting
  class GZip
    def self.inflate(string)
      io = StringIO.new(string)
      gz = Zlib::GzipReader.new(io)
      result = gz.read

      gz.close

      result
    end
  end
end