Sha256: b0e95db75556a98e0fdc7c9a16837f68fa70027737b4f61e41a050b5282dd05c

Contents?: true

Size: 557 Bytes

Versions: 18

Compression:

Stored size: 557 Bytes

Contents

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

18 entries across 18 versions & 1 rubygems

Version Path
panoptes-client-1.0.0.pre1 lib/panoptes/client/cellect.rb
panoptes-client-1.0.0.pre lib/panoptes/client/cellect.rb
panoptes-client-0.4.0 lib/panoptes/client/cellect.rb
panoptes-client-0.3.8 lib/panoptes/client/cellect.rb
panoptes-client-0.3.7 lib/panoptes/client/cellect.rb
panoptes-client-0.3.6 lib/panoptes/client/cellect.rb
panoptes-client-0.3.5 lib/panoptes/client/cellect.rb
panoptes-client-0.3.4 lib/panoptes/client/cellect.rb
panoptes-client-0.3.3 lib/panoptes/client/cellect.rb
panoptes-client-0.3.2 lib/panoptes/client/cellect.rb
panoptes-client-0.3.1 lib/panoptes/client/cellect.rb
panoptes-client-0.3.0 lib/panoptes/client/cellect.rb
panoptes-client-0.2.13 lib/panoptes/client/cellect.rb
panoptes-client-0.2.12 lib/panoptes/client/cellect.rb
panoptes-client-0.2.11 lib/panoptes/client/cellect.rb
panoptes-client-0.2.10 lib/panoptes/client/cellect.rb
panoptes-client-0.2.9 lib/panoptes/client/cellect.rb
panoptes-client-0.2.8 lib/panoptes/client/cellect.rb