Sha256: 48409b9c4164a3c1859f95425c2bca1b0c8796a61d8e4e0617f1c66faa931c2e

Contents?: true

Size: 587 Bytes

Versions: 7

Compression:

Stored size: 587 Bytes

Contents

module Panoptes
  class Client
    module Classifications
      def get_subject_classifications(subject_id, workflow_id)
        panoptes.paginate("/classifications/project", {
          admin: true,
          workflow_id: workflow_id,
          subject_id: subject_id
        }, resource: "classifications")
      end

      def get_user_classifications(user_id, workflow_id)
        panoptes.paginate("/classifications/project", {
          admin: true,
          workflow_id: workflow_id,
          user_id: user_id
        }, resource: "classifications")
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
panoptes-client-1.0.0.pre1 lib/panoptes/client/classifications.rb
panoptes-client-1.0.0.pre lib/panoptes/client/classifications.rb
panoptes-client-0.4.0 lib/panoptes/client/classifications.rb
panoptes-client-0.3.8 lib/panoptes/client/classifications.rb
panoptes-client-0.3.7 lib/panoptes/client/classifications.rb
panoptes-client-0.3.6 lib/panoptes/client/classifications.rb
panoptes-client-0.3.5 lib/panoptes/client/classifications.rb