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



19
20
21
# File 'lib/panoptes/client/cellect.rb', line 19

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



11
12
13
# File 'lib/panoptes/client/cellect.rb', line 11

def cellect_workflows
  cellect.get '/workflows'
end