Module: Toolhound::Client::Projects

Included in:
Toolhound::Client
Defined in:
lib/toolhound-ruby/client/projects.rb

Overview

Methods for the Projects API

Instance Method Summary collapse

Instance Method Details

#project(project, options = {}) ⇒ Sawyer::Resource

Get a single project

Parameters:

  • project (String)

    UUID of project to fetch

Returns:

  • (Sawyer::Resource)

    Project information



24
25
26
# File 'lib/toolhound-ruby/client/projects.rb', line 24

def project(project, options = {})
  # get "#{project_path(project)}", options
end

#projects(options = {}) ⇒ Array<Sawyer::Resource>

Note:

Shows a list of projects for the users organization aka account

List projects

Returns:

  • (Array<Sawyer::Resource>)

    List of projects



13
14
15
16
# File 'lib/toolhound-ruby/client/projects.rb', line 13

def projects(options = {})
  # paginate "projects", options
  
end