Sha256: 71fbafb674cd468d0c66b56d2cf531116962188e2d40b185471435b8318778f7
Contents?: true
Size: 541 Bytes
Versions: 6
Compression:
Stored size: 541 Bytes
Contents
require 'active_support' require_relative '../../web/serializers/test_run' require_relative '../../web/serializers/result' module Inferno module CLI class Execute # @private module Serialize def serialize(entity) case entity.class.to_s when 'Array' JSON.pretty_generate(entity.map { |item| JSON.parse serialize(item) }) else Inferno::Web::Serializers.const_get(entity.class.to_s.demodulize).render(entity) end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems