Sha256: 7d25c61dfdf3d340eebf9af0b123528d999388f5267c460ddc39ca69031e4506

Contents?: true

Size: 844 Bytes

Versions: 34

Compression:

Stored size: 844 Bytes

Contents

module Toolhound
  class Client

    # Methods for the Projects API
    #
    module Projects

      # List projects
      #
      # @note Shows a list of projects for the users organization aka account
      #
      # @return [Array<Sawyer::Resource>] List of projects
      def projects(options = {})
        # paginate "projects", options
        
      end
      # alias :list_projects :projects

      # Get a single project
      #
      # @param project [String] UUID of project to fetch
      # @return [Sawyer::Resource] Project information
      #
      def project(project, options = {})
        # get "#{project_path(project)}", options
      end

      private

      # def project_path(id)
      #   if uuid?(id)
      #     "projects/#{id}"
      #   else
      #     "project/#{id}"
      #   end
      # end

    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
toolhound-ruby-1.0.17 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.16 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.15 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.14 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.13 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.12 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.11 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.10 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.9 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.8 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.7 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.6 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.5 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.4 lib/toolhound-ruby/client/projects.rb