Sha256: 8b847e2f8dde0886338c094b61ca53e96c97cbf65f4783e748f8d3a0a07a6017
Contents?: true
Size: 340 Bytes
Versions: 33
Compression:
Stored size: 340 Bytes
Contents
module ZendeskAPI::Server class ZlibJSON < Hash class << self def demongoize(serialized_object) MultiJson.load(Zlib.inflate(serialized_object.to_s), :symbolize_keys => true) end def mongoize(input_hash) Moped::BSON::Binary.new(:generic, Zlib.deflate(input_hash.to_json)) end end end end
Version data entries
33 entries across 33 versions & 1 rubygems