Module: NewRelic::Agent::NewRelicService::Encoders::Compressed::Deflate

Defined in:
lib/new_relic/agent/new_relic_service/encoders.rb

Class Method Summary collapse

Class Method Details

.encode(data, opts = nil) ⇒ Object



22
23
24
# File 'lib/new_relic/agent/new_relic_service/encoders.rb', line 22

def self.encode(data, opts = nil)
  Zlib::Deflate.deflate(data, Zlib::DEFAULT_COMPRESSION)
end