Class: Gelfd::GzipParser
- Inherits:
-
Object
- Object
- Gelfd::GzipParser
- Defined in:
- lib/gelfd/gzip_parser.rb
Class Method Summary collapse
Class Method Details
.parse(data) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/gelfd/gzip_parser.rb', line 5 def self.parse(data) begin t = Zlib::GzipReader.new(StringIO.new(data)) t.read #raise NotYetImplementedError, "GZip decoding is not yet implemented" rescue Exception => e raise DecodeError, "Failed to decode data: #{e}" end end |