Check out example codes for "ruby hash transform keys". It will help you in understanding the concepts better.

Code Example 1

hash = { name: 'Rob', age: '28' }

hash.transform_keys{ |key| key.to_s.upcase }
# => { "NAME" => "Rob", "AGE" => "28" }

Learn ReactJs, React Native from akashmittal.com