Ruby transformer from JSON (as a string), XML, Hash and CSV to an instance class with its attributes