Class: Neo4j::Shared::TypeConverters::IntegerConverter
- Inherits:
-
BaseConverter
- Object
- BaseConverter
- Neo4j::Shared::TypeConverters::IntegerConverter
- 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
29 30 31 |
# File 'lib/neo4j/shared/type_converters.rb', line 29 def convert_type Integer end |
.db_type ⇒ Object
33 34 35 |
# File 'lib/neo4j/shared/type_converters.rb', line 33 def db_type Integer end |
.to_db(value) ⇒ Object Also known as: to_ruby
37 38 39 |
# File 'lib/neo4j/shared/type_converters.rb', line 37 def to_db(value) value.to_i end |