in reply to elegant way of handling hash?

How do you define "variables"? How/what/means "are got using API"? Elegant way of what?