Class: CassandraObject::Types::JsonType
- Inherits:
-
BaseType
- Object
- BaseType
- CassandraObject::Types::JsonType
show all
- Defined in:
- lib/cassandra_object/types/json_type.rb
Instance Attribute Summary
Attributes inherited from BaseType
#options
Instance Method Summary
collapse
Methods inherited from BaseType
#default, #initialize, #wrap
Instance Method Details
#decode(str) ⇒ Object
8
9
10
|
# File 'lib/cassandra_object/types/json_type.rb', line 8
def decode(str)
ActiveSupport::JSON.decode(str)
end
|
#encode(hash) ⇒ Object
4
5
6
|
# File 'lib/cassandra_object/types/json_type.rb', line 4
def encode(hash)
ActiveSupport::JSON.encode(hash)
end
|