Class: Neo4j::Shared::TypeConverters::FloatConverter

Inherits:
BaseConverter
  • Object
show all
Defined in:
lib/neo4j/shared/type_converters.rb

Class Method Summary collapse

Methods inherited from BaseConverter

converted?, #supports_array?

Class Method Details

.convert_typeObject



47
48
49
# File 'lib/neo4j/shared/type_converters.rb', line 47

def convert_type
  Float
end

.db_typeObject



51
52
53
# File 'lib/neo4j/shared/type_converters.rb', line 51

def db_type
  Float
end

.to_db(value) ⇒ Object Also known as: to_ruby



55
56
57
# File 'lib/neo4j/shared/type_converters.rb', line 55

def to_db(value)
  value.to_f
end