class RedPack::BsonTransCoder
Public Instance Methods
pack(obj)
click to toggle source
# File lib/redpack-ruby/transcoders.rb, line 19 def pack(obj) return BSON.serialize(obj) end
unpack(obj)
click to toggle source
# File lib/redpack-ruby/transcoders.rb, line 23 def unpack(obj) return BSON.deserialize(obj) end