Change hash key based on hash value

hash = {
“price”: “419.5”,
“pricelevelname”: “STOCKING DEALER”
}
Expected Result
{
“price_STOCKING DEALER”: “419.5”,
“pricelevelname”: “STOCKING DEALER”,
}

how to achieve this

Not really sure what you are trying to achieve here.

Could you elaborate on what you are doing in your posted example?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs