Sha256: 2ae14ccf364f7ed8864f4c41dcbaac55cf80c89dbdedf28a4841a6fe169648ff

Contents?: true

Size: 233 Bytes

Versions: 46

Compression:

Stored size: 233 Bytes

Contents

module CassandraObject
  module Types
    class JsonType < BaseType
      def encode(hash)
        ActiveSupport::JSON.encode(hash)
      end

      def decode(str)
        ActiveSupport::JSON.decode(str)
      end
    end
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
extendi-cassandra_object-1.0.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.12.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.12.1 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.12.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.6 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.5 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.4 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.3 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.1 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.11.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.10.5 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.10.4 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.10.3 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.10.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.10.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.9.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.9.1 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.9.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.8.1 lib/cassandra_object/types/json_type.rb