summaryrefslogtreecommitdiff
path: root/lib/opentox.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-01-25 16:27:39 +0100
committermguetlein <martin.guetlein@gmail.com>2011-01-25 16:27:39 +0100
commit2528891633d838a383f5a0e07712a0a8ee839f32 (patch)
tree6e221f6d0e18d280e8011c7dff16bc1e0581281a /lib/opentox.rb
parentddcf8597a13ea6f03c697c78d224376ff36c7ea3 (diff)
parentdbd302164b74de2b241627bcc205de7245ea0da1 (diff)
merged michas GET authorization
Diffstat (limited to 'lib/opentox.rb')
-rw-r--r--lib/opentox.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/opentox.rb b/lib/opentox.rb
index 90683e5..f1af5c3 100644
--- a/lib/opentox.rb
+++ b/lib/opentox.rb
@@ -19,14 +19,14 @@ module OpenTox
# Get all objects from a service
# @return [Array] List of available URIs
- def self.all(uri)
- RestClientWrapper.get(uri,:accept => "text/uri-list").to_s.split(/\n/)
+ def self.all(uri, subjectid=nil)
+ RestClientWrapper.get(uri,:accept => "text/uri-list", :subjectid => subjectid).to_s.split(/\n/)
end
# Load (and return) metadata from object URI
# @return [Hash] Metadata
- def load_metadata
- @metadata = Parser::Owl::Generic.new(@uri).load_metadata
+ def load_metadata(subjectid=nil)
+ @metadata = Parser::Owl::Generic.new(@uri).load_metadata(subjectid)
@metadata
end