diff options
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 |