I Have below YAML file.
signin:
element_1:
ios_id: ios_id_1
android_id: android_id_1
element_2:
ios_id: ios_id_2
android_id: android_id_2
I am trying to achieve is that,
When I load the YAML file, I have to load environment related id only.
For ex, on execution If I pass “IOS” then I have to create the hash
which will load only “ios” ids not android.
Hash Output should be:
Hash[“signin”][“element_1”] => ios_id_1
I am new to yaml and ruby. Can someone guide me through this?