diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-02-04 16:13:25 +0100 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-02-04 16:13:25 +0100 |
commit | 5ea8356992751af875812f0e244f08760eb30aee (patch) | |
tree | 1962754dec3a3b9e8331f5ca48c7bc8f8379079f /lib/opentox.rb | |
parent | e035b7136b8c2df70de980379695fbfeaf070290 (diff) |
added delete to opentox objects, cosmetics
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 5 |
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 |