Class: Basecamp3::Person
Overview
A model for Basecamp's Message Person
For more information, see the official Basecamp3 API documentation for People
Constant Summary
Constants inherited from Model
Instance Attribute Summary collapse
-
#admin ⇒ Object
Returns the value of attribute admin.
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#bio ⇒ Object
Returns the value of attribute bio.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#time_zone ⇒ Object
Returns the value of attribute time_zone.
-
#title ⇒ Object
Returns the value of attribute title.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Class Method Summary collapse
-
.all ⇒ Array<Basecamp3::Person>
Returns a list of all people visible to the current user.
-
.find(id) ⇒ Basecamp3::Person
Returns the person.
-
.me ⇒ Basecamp3::Person
Returns the current user's personal info..
-
.pingable ⇒ Array<Basecamp3::Person>
Returns a list of all people who can be pinged.
Methods inherited from Model
Constructor Details
This class inherits a constructor from Basecamp3::Model
Instance Attribute Details
#admin ⇒ Object
Returns the value of attribute admin
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def admin @admin end |
#avatar_url ⇒ Object
Returns the value of attribute avatar_url
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def avatar_url @avatar_url end |
#bio ⇒ Object
Returns the value of attribute bio
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def bio @bio end |
#created_at ⇒ Object
Returns the value of attribute created_at
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def created_at @created_at end |
#email_address ⇒ Object
Returns the value of attribute email_address
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def email_address @email_address end |
#id ⇒ Object
Returns the value of attribute id
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def id @id end |
#name ⇒ Object
Returns the value of attribute name
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def owner @owner end |
#time_zone ⇒ Object
Returns the value of attribute time_zone
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def time_zone @time_zone end |
#title ⇒ Object
Returns the value of attribute title
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def title @title end |
#updated_at ⇒ Object
Returns the value of attribute updated_at
5 6 7 |
# File 'lib/basecamp3/models/person.rb', line 5 def updated_at @updated_at end |
Class Method Details
.all ⇒ Array<Basecamp3::Person>
Returns a list of all people visible to the current user.
20 21 22 |
# File 'lib/basecamp3/models/person.rb', line 20 def self.all Basecamp3.request.get("/people", {}, Basecamp3::Person) end |
.find(id) ⇒ Basecamp3::Person
Returns the person.
36 37 38 |
# File 'lib/basecamp3/models/person.rb', line 36 def self.find(id) Basecamp3.request.get("/people/#{id}", {}, Basecamp3::Person) end |