Class: Neo4j::Shared::TypeConverters::IntegerConverter

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



29
30
31
# File 'lib/neo4j/shared/type_converters.rb', line 29

def convert_type
  Integer
end

.db_typeObject



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