Class: Neo4j::Shared::TypeConverters::FloatConverter
- Inherits:
-
BaseConverter
- Object
- BaseConverter
- Neo4j::Shared::TypeConverters::FloatConverter
- Defined in:
- lib/neo4j/shared/type_converters.rb
Class Method Summary collapse
- .convert_type ⇒ Object
- .db_type ⇒ Object
- .to_db(value) ⇒ Object (also: to_ruby)
Methods inherited from BaseConverter
Class Method Details
.convert_type ⇒ Object
47 48 49 |
# File 'lib/neo4j/shared/type_converters.rb', line 47 def convert_type Float end |
.db_type ⇒ Object
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 |