Class: CassandraModel::FloatType

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

Class Method Summary collapse

Class Method Details

.dump(v) ⇒ Object



43
44
45
# File 'lib/cassandra-model/types.rb', line 43

def self.dump(v)
  v && v.to_s
end

.load(v) ⇒ Object



47
48
49
# File 'lib/cassandra-model/types.rb', line 47

def self.load(v)
  v && v.to_f
end