Class: Basecampx::Person
- Defined in:
- lib/basecampx/resources/person.rb
Instance Attribute Summary collapse
-
#admin ⇒ Object
Returns the value of attribute admin.
-
#assigned_todos ⇒ Object
Returns the value of attribute assigned_todos.
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#email_address ⇒ Object
Returns the value of attribute email_address.
-
#events ⇒ Object
Returns the value of attribute events.
-
#id ⇒ Object
Returns the value of attribute id.
-
#identity_id ⇒ Object
Returns the value of attribute identity_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#todo_list ⇒ Object
Returns the value of attribute todo_list.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
- #details ⇒ Object
- #last_events(since = 1.day.ago) ⇒ Object
-
#todos ⇒ Object
GET /people/1/assigned_todos.json.
-
#topics ⇒ Object
GET /projects/1/topics.json.
Methods inherited from Resource
#delete, #initialize, parse, #save, #update_attributes
Methods included from Relations
Constructor Details
This class inherits a constructor from Basecampx::Resource
Instance Attribute Details
#admin ⇒ Object
Returns the value of attribute admin.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def admin @admin end |
#assigned_todos ⇒ Object
Returns the value of attribute assigned_todos.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def assigned_todos @assigned_todos end |
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def avatar_url @avatar_url end |
#created_at ⇒ Object
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def created_at @created_at end |
#email_address ⇒ Object
Returns the value of attribute email_address.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def email_address @email_address end |
#events ⇒ Object
Returns the value of attribute events.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def events @events end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def id @id end |
#identity_id ⇒ Object
Returns the value of attribute identity_id.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def identity_id @identity_id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def name @name end |
#todo_list ⇒ Object
Returns the value of attribute todo_list.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def todo_list @todo_list end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/basecampx/resources/person.rb', line 4 def url @url end |
Class Method Details
Instance Method Details
#details ⇒ Object
20 21 22 |
# File 'lib/basecampx/resources/person.rb', line 20 def details update_details self.url end |
#last_events(since = 1.day.ago) ⇒ Object
24 25 26 |
# File 'lib/basecampx/resources/person.rb', line 24 def last_events since=1.day.ago Event.parse Basecampx.request "people/#{self.id}/events.json?since=#{since.to_time.iso8601}" end |