Class: Unfuzzle::Person

Inherits:
Object
  • Object
show all
Includes:
Graft
Defined in:
lib/unfuzzle/lib/unfuzzle/person.rb

Class Method Summary collapse

Methods included from Graft

included

Class Method Details

.allObject



9
10
11
12
# File 'lib/unfuzzle/lib/unfuzzle/person.rb', line 9

def self.all
  response = Request.get("/people")
  collection_from(response.body, 'people/person')
end

.all_for_project(project_id) ⇒ Object



14
15
16
17
# File 'lib/unfuzzle/lib/unfuzzle/person.rb', line 14

def self.all_for_project(project_id)
  response = Request.get("/projects/#{project_id}/people")
  collection_from(response.body, 'people/person')
end