lib/transcriber/resource/serialization/integer.rb in transcriber-0.0.25 vs lib/transcriber/resource/serialization/integer.rb in transcriber-0.0.26
- old
+ new
@@ -5,9 +5,15 @@
def self.serialize(value)
Integer(value)
rescue ArgumentError
raise "value not serializable: #{value}"
end
+
+ def self.desserialize(value)
+ Integer(value)
+ rescue ArgumentError
+ raise "value not desserializable: #{value}"
+ end
end
end
end
end