summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2009-12-14 09:41:59 +0100
committerChristoph Helma <helma@in-silico.de>2009-12-14 09:41:59 +0100
commitfc3bda0095ca7e6968edf01bec034a243d294af4 (patch)
tree6721d1130308ec1543d18acab9610860b6fe116f /lib/opentox.rb
parentadfcc9d572a2122b1b030dc04b3abf46007fb3f7 (diff)
Initial adaptation to RDF/OWL
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
deleted file mode 100644
index 9b1226b..0000000
--- a/lib/opentox.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-module OpenTox
-
- class OpenTox
- attr_accessor :uri
-
- def initialize(uri)
- @uri = uri
- end
-
- # Get the object name
- def name
- RestClient.get @uri + '/name'
- end
-
- # Deletes an object
- def destroy
- RestClient.delete @uri
- end
-
- # Object path without hostname
- def path
- URI.split(@uri)[5]
- end
-
- end
-
-end