Module: StrokeDB::JsonSerializationMethod

Defined in:
lib/strokedb/util/serialization.rb

Instance Method Summary collapse

Instance Method Details

#deserialize(x) ⇒ Object



27
28
29
# File 'lib/strokedb/util/serialization.rb', line 27

def deserialize(x)
  JSON.parse(x)
end

#serialize(x) ⇒ Object



24
25
26
# File 'lib/strokedb/util/serialization.rb', line 24

def serialize(x)
  x.to_json
end