Class: Camper::Person

Inherits:
APIObject show all
Defined in:
lib/camper/person.rb

Instance Attribute Summary

Attributes inherited from APIObject

#attrs, #client

Instance Method Summary (collapse)

Methods inherited from APIObject

#handle, #initialize, lazy_attr_reader

Constructor Details

This class inherits a constructor from Camper::APIObject

Instance Method Details

- (Array, false) assigned_todos

Returns todos assigned to a person

Returns:

  • (Array, false)

    returns Array of Camper::Todo objects if request is successful, otherwise returns false



11
12
13
# File 'lib/camper/person.rb', line 11

def assigned_todos
  client.handle Camper::TodoList, client.get("people/#{id}/assigned_todos")
end