diff options
Diffstat (limited to 'lib/model.rb')
-rw-r--r-- | lib/model.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/model.rb b/lib/model.rb index bd9d546..a585b59 100644 --- a/lib/model.rb +++ b/lib/model.rb @@ -50,6 +50,14 @@ module OpenTox RestClient.post(@@config[:services]["opentox-model"], data, :content_type => "application/x-yaml").to_s end +# def self.create(task) +# @uri = RestClient.post(@@config[:services]["opentox-model"], :task_uri => task.uri) +# end + +# def yaml=(data) +# RestClient.put(@@uri, data, :content_type => "application/x-yaml").to_s +# end + def endpoint YAML.load(RestClient.get(uri))[:endpoint] end |