Method: Tinybucket::Api::TeamApi#list

Defined in:
lib/tinybucket/api/team_api.rb

#list(role_name, options = {}) ⇒ Tinybucket::Model::Page

Send ‘GET teams’ request

Parameters:

  • role_name (String)

    role name

  • options (Hash) (defaults to: {})

Returns:



17
18
19
20
21
22
23
# File 'lib/tinybucket/api/team_api.rb', line 17

def list(role_name, options = {})
  get_path(
    path_to_list,
    { role: role_name }.merge(options),
    get_parser(:collection, Tinybucket::Model::Team)
  )
end