Class: Harvest::Resources::Project
- Inherits:
-
HarvestResource
- Object
- ActiveResource::Base
- HarvestResource
- Harvest::Resources::Project
- Includes:
- Plugins::Toggleable
- Defined in:
- lib/harvest/resources/project.rb
Overview
Supports the following:
Instance Method Summary collapse
Methods included from Plugins::Toggleable
Methods included from Plugins::ActiveResourceInheritableHeaders
Instance Method Details
#entries(options = {}) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/harvest/resources/project.rb', line 23 def entries(={}) () entry_class = Harvest::Resources::Entry.clone entry_class.project_id = self.id entry_class.find :all, :params => format_params() end |
#tasks ⇒ Object
13 14 15 16 17 |
# File 'lib/harvest/resources/project.rb', line 13 def tasks task_class = Harvest::Resources::TaskAssignment.clone task_class.project_id = self.id task_class end |
#users ⇒ Object
7 8 9 10 11 |
# File 'lib/harvest/resources/project.rb', line 7 def users user_class = Harvest::Resources::UserAssignment.clone user_class.project_id = self.id user_class end |