Class: Neo4j::Shared::TypeConverters::StringConverter

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



88
89
90
# File 'lib/neo4j/shared/type_converters.rb', line 88

def convert_type
  String
end

.db_typeObject



92
93
94
# File 'lib/neo4j/shared/type_converters.rb', line 92

def db_type
  String
end

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



96
97
98
# File 'lib/neo4j/shared/type_converters.rb', line 96

def to_db(value)
  value.to_s
end