Skip to content

Commit

Permalink
Remove RObject#url. Addresses #3.
Browse files Browse the repository at this point in the history
It is not relied upon for anything and is not compatible/useful with the new client structure. There are also no specs for it.
  • Loading branch information
Sean Cribbs committed Apr 11, 2012
1 parent dc96d6c commit 83ca0fa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/riak/robject.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,6 @@ def to_link(tag)
Link.new(@bucket.name, @key, tag)
end

# 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

alias :vector_clock :vclock
alias :vector_clock= :vclock=

Expand Down

0 comments on commit 83ca0fa

Please sign in to comment.