DataMagic for nested yml file

Hi,

I have a yml file like below.

accounts:
account1:
name: vink
age: 26
account2:
name: pink
age: 27

In order to read the data thru DATAMAGIC method, Please let me know how
code flow should be in ruby?

I knew that if we have only one key in yml file.

Then Code is…

DataMagic.load(“ymlfile.yml”)
variablename=data_for(:accounts)

But now i have key “accounts” and sub key “account1”. In this case I
wanted to read name and age values… Thanks in advance.