Class: Neo4j::Shared::TypeConverters::YAMLConverter
Overview
Converts hash to/from YAML
Class Method Summary
collapse
converted?, #supports_array?
Class Method Details
.convert_type ⇒ Object
227
228
229
|
# File 'lib/neo4j/shared/type_converters.rb', line 227
def convert_type
Hash
end
|
.db_type ⇒ Object
231
232
233
|
# File 'lib/neo4j/shared/type_converters.rb', line 231
def db_type
String
end
|
.to_db(value) ⇒ Object
235
236
237
|
# File 'lib/neo4j/shared/type_converters.rb', line 235
def to_db(value)
Psych.dump(value)
end
|
.to_ruby(value) ⇒ Object
239
240
241
|
# File 'lib/neo4j/shared/type_converters.rb', line 239
def to_ruby(value)
Psych.load(value)
end
|