I think it would be better to extract the slug into a separate method:

``` Ruby
def releases
  @releases ||= api.releases(slug)
end

def slug
  options.fetch(:repo) { ENV['TRAVIS_REPO_SLUG'] }
end
```