Class: CassandraObject::Types::JsonType
- Defined in:
- lib/cassandra_object/types/json_type.rb
Defined Under Namespace
Classes: DirtyHash
Instance Attribute Summary
Attributes inherited from BaseType
Instance Method Summary collapse
Methods inherited from BaseType
Constructor Details
This class inherits a constructor from CassandraObject::Types::BaseType
Instance Method Details
#decode(str) ⇒ Object
42 43 44 |
# File 'lib/cassandra_object/types/json_type.rb', line 42 def decode(str) ActiveSupport::JSON.decode(str) end |
#encode(hash) ⇒ Object
38 39 40 |
# File 'lib/cassandra_object/types/json_type.rb', line 38 def encode(hash) ActiveSupport::JSON.encode(hash) end |