Class: Harvest::Resources::Project

Inherits:
HarvestResource show all
Includes:
Plugins::Toggleable
Defined in:
lib/harvest/resources/project.rb

Overview

Supports the following:

Instance Method Summary collapse

Methods included from Plugins::Toggleable

#toggle

Methods included from Plugins::ActiveResourceInheritableHeaders

included

Instance Method Details

#entries(options = {}) ⇒ Object

Find all entries for the given project; options and options are required; include options to limit by a specific user.



23
24
25
26
27
28
# File 'lib/harvest/resources/project.rb', line 23

def entries(options={})
  validate_entries_options(options)
  entry_class = Harvest::Resources::Entry.clone
  entry_class.project_id = self.id
  entry_class.find :all, :params => format_params(options)
end

#tasksObject



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

#usersObject



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