Class: CassandraModel::JsonType

Inherits:
Object
  • Object
show all
Defined in:
lib/cassandra-model/types.rb

Class Method Summary collapse

Class Method Details

.dump(v) ⇒ Object



80
81
82
# File 'lib/cassandra-model/types.rb', line 80

def self.dump(v)
  v && ::JSON.dump(v)
end

.load(v) ⇒ Object



84
85
86
# File 'lib/cassandra-model/types.rb', line 84

def self.load(v)
  v && ::JSON.load(v)
end