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.1.1 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.1.0 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.20 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.19 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.18 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.17 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.16 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.15 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.14 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.13 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.12 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.11 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.10 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.9 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.8 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.7 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.6 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.5 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.4 lib/cassandra_object/types/json_type.rb
extendi-cassandra_object-1.0.1 lib/cassandra_object/types/json_type.rb