I tend to prefer inlining local variables unless they're used multiple times/require a long method call to find, in which case I put them in query methods:

``` ruby
cache.write(build["repository_id"], commit["branch"], data)
```

This is pretty much only a personal style choice, though.