Sha256: a73e1957391a0dacefbe021e707db6aa20bf8759a11ffa505bfe0302a5c7adee

Contents?: true

Size: 239 Bytes

Versions: 2

Compression:

Stored size: 239 Bytes

Contents

module Appsignal
  class ZippedPayload
    attr_reader :body

    def initialize(given_body)
      @body = Zlib::Deflate.deflate(
        JSON.generate(given_body, :quirks_mode => true),
        Zlib::BEST_SPEED
      )
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
appsignal-0.11.9 lib/appsignal/zipped_payload.rb
appsignal-0.11.8.beta.4 lib/appsignal/zipped_payload.rb