Sha256: c46f6239a7511b4fd54d1e9d912a48fadc6d78268ec0e0e9a322bed2657cb18d

Contents?: true

Size: 517 Bytes

Versions: 5

Compression:

Stored size: 517 Bytes

Contents

module Panoptes
  class Client
    module Projects
      # Fetches the list of all projects.
      #
      # @see http://docs.panoptes.apiary.io/#reference/projects/project-collection/list-all-projects
      # @param search [String] filter projects using full-text search on names (amongst others)
      # @return [Array] the list of projects
      def projects(search: nil)
        params = {}
        params[:search] = search if search

        paginate("/projects", params)["projects"]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
panoptes-client-0.2.2 lib/panoptes/client/projects.rb
panoptes-client-0.2.1 lib/panoptes/client/projects.rb
panoptes-client-0.2.0 lib/panoptes/client/projects.rb
panoptes-client-0.1.2 lib/panoptes/client/projects.rb
panoptes-client-0.1.1 lib/panoptes/client/projects.rb