Converts a Ruby Hash to a Class Object