Sha256: 17fd19aba8eb62c8417ea2467b0b1713bff9fa37f4a72afec05057ada87a23a3

Contents?: true

Size: 212 Bytes

Versions: 21

Compression:

Stored size: 212 Bytes

Contents

require 'multi_json'

module Tracker
  class JsonSerializer
    def initialize(dimensions)
      @dimensions = dimensions
    end

    def dump(obj)
      MultiJson.dump(@dimensions.merge(obj))
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
liquid-ext-3.5.3 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.5.2 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.5.0 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.4.2 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.4.1 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.4.0 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.10 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.9 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.8 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.7 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.6 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.5 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.4 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.3 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.2 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.3.0 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.2.0 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.1.2 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.1.1 lib/liquid/tracker/json_serializer.rb
liquid-ext-3.1.0 lib/liquid/tracker/json_serializer.rb