Sha256: dccf16b44e3ad3278da835f4144de2c326065bc088ee7fc507bbb99553a88f71
Contents?: true
Size: 294 Bytes
Versions: 11
Compression:
Stored size: 294 Bytes
Contents
module CassandraObject module Types class ArrayType def encode(array) raise ArgumentError.new("#{self} requires an Array") unless array.kind_of?(Array) array.to_json end def decode(str) ActiveSupport::JSON.decode(str) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems