diff options
author | Christoph Helma <helma@in-silico.de> | 2009-12-14 09:41:59 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2009-12-14 09:41:59 +0100 |
commit | fc3bda0095ca7e6968edf01bec034a243d294af4 (patch) | |
tree | 6721d1130308ec1543d18acab9610860b6fe116f /lib/opentox.rb | |
parent | adfcc9d572a2122b1b030dc04b3abf46007fb3f7 (diff) |
Initial adaptation to RDF/OWL
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r-- | lib/opentox.rb | 27 |
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 |