Sha256: 8590b444126da758e634ff3645bb656a81585acad799958a687e7845061fa9f8
Contents?: true
Size: 326 Bytes
Versions: 20
Compression:
Stored size: 326 Bytes
Contents
module ZendeskAPI::Server class ZlibJSON < Hash class << self def demongoize(serialized_object) JSON.parse(Zlib.inflate(serialized_object.to_s)).symbolize_keys end def mongoize(input_hash) Moped::BSON::Binary.new(:generic, Zlib.deflate(input_hash.to_json)) end end end end
Version data entries
20 entries across 20 versions & 1 rubygems