Module: Gerry::Client::Projects

Included in:
Gerry::Client
Defined in:
lib/gerry/client/projects.rb

Instance Method Summary collapse

Instance Method Details

#find_project(name) ⇒ Hash

Get the projects that start with the specified prefix and accessible by the caller.

Parameters:

  • name (String)

    the project name.

Returns:

  • (Hash)

    the projects.


16
17
18
# File 'lib/gerry/client/projects.rb', line 16

def find_project(name)
  get("/projects/#{name}")
end

#projectsHash

Get the projects accessible by the caller.

Returns:

  • (Hash)

    the projects.


7
8
9
# File 'lib/gerry/client/projects.rb', line 7

def projects
  get('/projects/')
end