Added mapping to convert hashes in ruby