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.37 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.36 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.35 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.34 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.33 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.32 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.31 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.30 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.29 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.28 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.27 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.26 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.25 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.24 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.23 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.22 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.21 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.20 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.19 lib/toolhound-ruby/client/projects.rb
toolhound-ruby-1.0.18 lib/toolhound-ruby/client/projects.rb