class Neo4j::TypeConverters::SerializeConverter
Public Class Methods
convert?(type)
click to toggle source
# File lib/neo4j_helper/serialize.rb, line 7 def convert?(type) type == :serialize end
to_java(value)
click to toggle source
# File lib/neo4j_helper/serialize.rb, line 11 def to_java(value) return nil unless value JSON.generate(value).to_s end
to_ruby(value)
click to toggle source
# File lib/neo4j_helper/serialize.rb, line 16 def to_ruby(value) return nil unless value JSON.parse(value.to_s) end