Module: Gerry::Api::Access

Included in:
Client
Defined in:
lib/gerry/api/access.rb

Instance Method Summary collapse

Instance Method Details

#access(*projects) ⇒ Hash

Get access rights for the specified project

Parameters:

  • projects (VarArgs)

    the project names

Returns:

  • (Hash)

    the list of access rights



10
11
12
13
14
# File 'lib/gerry/api/access.rb', line 10

def access(*projects)
  projects = projects.flatten.map { |name| ERB::Util.url_encode(name) }
  url = "/access/?project=#{projects.join('&project=')}"
  get(url)
end