Class: NumeritajTipo::Neo4j::TypeConverters::SymbolConverter
- Inherits:
-
Object
- Object
- NumeritajTipo::Neo4j::TypeConverters::SymbolConverter
- Includes:
- Neo4j::Shared::Typecaster
- Defined in:
- lib/numeritaj_tipo/neo4j/type_converters/symbol_converter.rb
Class Method Summary collapse
- .convert_type ⇒ Object
- .db_type ⇒ Object
- .premitive_type ⇒ Object
- .to_db(value) ⇒ Object
- .to_ruby(value) ⇒ Object (also: call)
Class Method Details
.convert_type ⇒ Object
14 15 16 |
# File 'lib/numeritaj_tipo/neo4j/type_converters/symbol_converter.rb', line 14 def convert_type Symbol end |
.db_type ⇒ Object
18 19 20 |
# File 'lib/numeritaj_tipo/neo4j/type_converters/symbol_converter.rb', line 18 def db_type String end |
.premitive_type ⇒ Object
10 11 12 |
# File 'lib/numeritaj_tipo/neo4j/type_converters/symbol_converter.rb', line 10 def premitive_type Symbol end |
.to_db(value) ⇒ Object
22 23 24 |
# File 'lib/numeritaj_tipo/neo4j/type_converters/symbol_converter.rb', line 22 def to_db(value) value.to_s end |
.to_ruby(value) ⇒ Object Also known as: call
26 27 28 |
# File 'lib/numeritaj_tipo/neo4j/type_converters/symbol_converter.rb', line 26 def to_ruby(value) value.to_sym end |