you can write it this way
```
yapi_response['zones'].inject([]) do |new_zones, yapi_zones|
  new_zones << { :region => yapi_zones['name'], :timezones => yapi_zones['entries'].values }