summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-02-04 16:13:25 +0100
committermguetlein <martin.guetlein@gmail.com>2011-02-04 16:13:25 +0100
commit5ea8356992751af875812f0e244f08760eb30aee (patch)
tree1962754dec3a3b9e8331f5ca48c7bc8f8379079f /lib/opentox.rb
parente035b7136b8c2df70de980379695fbfeaf070290 (diff)
added delete to opentox objects, cosmetics
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index f1af5c3..1992896 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -43,5 +43,10 @@ module OpenTox
s.to_rdfxml
end
+ # deletes the resource, deletion should have worked when no RestCallError raised
+ def delete(subjectid=nil)
+ RestClientWrapper.delete(uri,:subjectid => subjectid)
+ end
+
end