OK, after a little thinking I think that you actually want to map hash to map..so you can write it this way:
```
slp = [service] + attr.map { |k, v| k.downcase + "=" + v }
```