```ruby
def bucket_prefix
  @uri.host.gsub(/-[a-z]{2}-[a-z]{4,}-\d/, '')
end

def id
  path[1]
end

def name
  path.first
end

def path
  @path ||= @uri.path.scan /[\w-]+/
end
```

scan does this:
```ruby
u = URI.parse 's3://foo-bar-us-west-1/foo-base/1234.tar.gz'
=> #<URI::Generic:0x007f80689fe580 URL:s3://foo-bar-us-west-1/foo-base/1234.tar.gz>
u.path.scan(/[\w-]+/)
=> ["foo-base", "1234", "tar", "gz"]
```