Class: Basecamp::Person

Inherits:
Base
  • Object
show all
Defined in:
lib/basecamp/person.rb

Overview

</person>

Class Method Summary collapse

Methods inherited from Base

establish_connection!

Class Method Details

.in_company(company_id) ⇒ Object



47
48
49
# File 'lib/basecamp/person.rb', line 47

def self.in_company(company_id)
	find(:all, :from => "/projects/#{company_id}/people.xml")
end

.in_project(project_id) ⇒ Object



43
44
45
# File 'lib/basecamp/person.rb', line 43

def self.in_project(project_id)
	find(:all, :from => "/projects/#{project_id}/people.xml")
end

.meObject

Current logged in person



34
35
36
# File 'lib/basecamp/person.rb', line 34

def self.me
get(:me)
end

.peopleObject

Returns all people visible to (and including) the requesting user.



39
40
41
# File 'lib/basecamp/person.rb', line 39

def self.people
  find(:all)
end