lib/grendel/linked_document.rb in grendel-ruby-0.1.1 vs lib/grendel/linked_document.rb in grendel-ruby-0.1.2
- old
+ new
@@ -1,9 +1,9 @@
module Grendel
class LinkedDocument < Document
attr_accessor :linked_user, :owner
-
+
# create a new linked document
# user - linked user
# params:
# :name => document name
# :uri => linked document uri
@@ -15,14 +15,14 @@
params.symbolize_keys!
@owner = User.new(linked_user.client, params[:owner])
super(@owner, params)
@linked_user = linked_user
@name = params[:name]
- @uri = params[:uri] ?
+ @uri = params[:uri] ?
URI.parse(params[:uri]).path :
["/linked-documents", @owner.id, name].join("/")
end
-
+
# delete this linked document
def delete
@linked_user.delete(@uri)
end
end
\ No newline at end of file