Sha256: d8d975698fe7f33539bca589913bcdb5071fab956a17e6df69168fbb0bf5e254

Contents?: true

Size: 588 Bytes

Versions: 5

Compression:

Stored size: 588 Bytes

Contents

# frozen_string_literal: true

require 'faraday'

module Panoptes
  class Client
    module Cellect
      # Fetches all cellect-enabled, launched workflows.
      #
      # @return [Hash] the list of workflows
      def cellect_workflows
        cellect.get '/workflows'
      end

      # Fetches all active subjects for a cellect-enabled workflow.
      #
      # @param workflow_id [Integer] the id of the workflow
      # @return [Hash] the list of subjects
      def cellect_subjects(workflow_id)
        cellect.get '/subjects', workflow_id: workflow_id
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
panoptes-client-1.2.1 lib/panoptes/client/cellect.rb
panoptes-client-1.2.0 lib/panoptes/client/cellect.rb
panoptes-client-1.1.1 lib/panoptes/client/cellect.rb
panoptes-client-1.1.0 lib/panoptes/client/cellect.rb
panoptes-client-1.0.0 lib/panoptes/client/cellect.rb