Creates a task.
Parameters:
optional arguments
Options Hash (opts):
the app ID to which this object belongs
one of:
number of users who should do this task [not in use]
whether this is a calibration task [not in use]
between 0 (low) and 1 (high) [not in use]
all other task details
an API key
Returns:
a task
See Also:
39 40 41 42 43 44
# File 'lib/pybossa-api/task.rb', line 39 def create(opts = {}) if opts.has_key? :calibration opts[:calibration] = opts[:calibration] ? 1 : 0 end PyBossa::API.create 'task', opts end