Module: Panoptes::Client::Cellect

Included in:
Panoptes::Client
Defined in:
lib/panoptes/client/cellect.rb

Instance Method Summary collapse

Instance Method Details

#cellect_subjects(workflow_id) ⇒ Hash

Fetches all active subjects for a cellect-enabled workflow.

Parameters:

  • workflow_id (Integer)

    the id of the workflow

Returns:

  • (Hash)

    the list of subjects



17
18
19
# File 'lib/panoptes/client/cellect.rb', line 17

def cellect_subjects(workflow_id)
  cellect.get '/subjects', workflow_id: workflow_id
end

#cellect_workflowsHash

Fetches all cellect-enabled, launched workflows.

Returns:

  • (Hash)

    the list of workflows



9
10
11
# File 'lib/panoptes/client/cellect.rb', line 9

def cellect_workflows
  cellect.get '/workflows'
end