Updating hash key value

“endpoint_body[:reportRequests][0][:pageToken]” in this case how can i update the key value
pageToken

Unless I’m misunderstanding the question, surely

endpoint_body[:reportRequests][0][:pageToken] = new_value

?

“endpoint_body[:reportRequests][0][:pageToken]”
i have hash in this formate only

Why do you want to have your variable expression as a string?

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