Sha256: 0e9adef720b837928ec9a8dd5baee5e43e2fb02b79d343537a7cdf9da3d5c720

Contents?: true

Size: 232 Bytes

Versions: 59

Compression:

Stored size: 232 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

59 entries across 59 versions & 1 rubygems

Version Path
gotime-cassandra_object-4.5.1 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.5.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.4.5 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.4.4 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.4.3 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.4.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.3.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.3.1 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.3.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.2.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.2.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.1.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.0.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.0.1 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-4.0.0 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-3.0.5 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-3.0.4 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-3.0.3 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-3.0.2 lib/cassandra_object/types/json_type.rb
gotime-cassandra_object-3.0.1 lib/cassandra_object/types/json_type.rb