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] 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