Class: Tenk::Projects::Users

Inherits:
ProjectResource show all
Defined in:
lib/projects/users.rb

Overview

API methods for Users resource under a project, which lists users tied to a particular project

Defined Under Namespace

Classes: ListRequest

Instance Method Summary collapse

Methods inherited from ProjectResource

#create, #delete, #get, #initialize, #resource_root, #update

Constructor Details

This class inherits a constructor from Tenk::Projects::ProjectResource

Instance Method Details

#list(project_id, opts = {}) ⇒ Hashie::Mash

List Users for a single project

Parameters:

  • project_id (Integer)

    the id of the project

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

    the query parameters to add to list request

Returns:

  • (Hashie::Mash)

    the API response as a Hashie::Mash

See Also:



21
22
23
# File 'lib/projects/users.rb', line 21

def list(project_id, opts = {})
  super(project_id, ListRequest.new(opts))
end