Transforms data, Ruby