seancribbs/ripple — Issue #249: RObject#url doesn't know about load-balancing
Author: johnae
Created: 2011-11-24 10:49:08+00:00
State: open

Below method in RObject to get the url doesn't know about load-balancing.

# Generates a URL representing the object according to the client, bucket and key.
# If the key is blank, the bucket URL will be returned (where the object will be
# submitted to when stored).
def url
segments = [ @bucket.client.http_paths[:prefix], escape(@bucket.name)]
segments << escape(@key) if @key
@bucket.client.http.path(*segments).to_s
end