class Harvest::API::Tasks
Public Instance Methods
activate(task)
click to toggle source
Activates the task. Does nothing if the task is already activated
@param [Harvest::Task] task the task you want to activate @return [Harvest::Task] the activated task
# File lib/harvest/api/tasks.rb, line 26 def activate(task) if !task.active? request(:post, credentials, "#{api_model.api_path}/#{task.to_i}/activate", :headers => {'Content-Length' => '0'}) task.active = true end task end