Sha256: 955c5f2bda5e907268c6e6eb2e96be765b217f5d776d2742b3bfbd969b5a8e86
Contents?: true
Size: 413 Bytes
Versions: 1
Compression:
Stored size: 413 Bytes
Contents
module Zencoder module Serializer extend self def self.included(klass) klass.extend(self) end def encode(content) if content.is_a?(String) || content.nil? content else MultiJson.encode(content) end end def decode(content) if content.is_a?(String) MultiJson.decode(content) else content end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
zencoder-2.4.0 | lib/zencoder/serializer.rb |