summaryrefslogtreecommitdiff
path: root/lib/algorithm.rb
blob: 4986c40114c51d1bce6f151ffa16b58a89b295b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module OpenTox

  # Wrapper for OpenTox Algorithms
  class Algorithm 

    # Execute algorithm with parameters, please consult the OpenTox API and the webservice documentation for acceptable parameters
    # @param [optional,Hash] params Algorithm parameters
    # @param [optional,OpenTox::Task] waiting_task (can be a OpenTox::Subtask as well), progress is updated accordingly
    # @return [String] URI of new resource (dataset, model, ...)
    def run params=nil
      post params, {:accept => 'text/uri-list'}
    end

  end
end