Sha256: 77f5fb1f3457e12d5716096047917d493cd175a739f4c177ff605071102c3680
Contents?: true
Size: 341 Bytes
Versions: 28
Compression:
Stored size: 341 Bytes
Contents
module Fog module JSON def self.sanitize(data) case data when Array data.map {|datum| sanitize(datum)} when Hash for key, value in data data[key] = sanitize(value) end when ::Time data.strftime("%Y-%m-%dT%H:%M:%SZ") else data end end end end
Version data entries
28 entries across 28 versions & 7 rubygems