Class: Basecamp::Person
- Defined in:
- lib/basecamp/person.rb
Overview
</person>
Class Method Summary collapse
- .in_company(company_id) ⇒ Object
- .in_project(project_id) ⇒ Object
-
.me ⇒ Object
Current logged in person.
-
.people ⇒ Object
Returns all people visible to (and including) the requesting user.
Methods inherited from Base
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 |
.me ⇒ Object
Current logged in person
34 35 36 |
# File 'lib/basecamp/person.rb', line 34 def self.me get(:me) end |
.people ⇒ Object
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 |