Class: Harvest::Resources::UserAssignment

Inherits:
HarvestResource
  • Object
show all
Defined in:
lib/harvest/resources/user_assignment.rb

Class Method Summary collapse

Methods included from Plugins::ActiveResourceInheritableHeaders

included

Class Method Details

.project_idObject



15
16
17
# File 'lib/harvest/resources/user_assignment.rb', line 15

def project_id
  @project_id
end

.project_id=(id) ⇒ Object



10
11
12
13
# File 'lib/harvest/resources/user_assignment.rb', line 10

def project_id=(id)
  @project_id = id
  set_site
end

.set_siteObject



19
20
21
# File 'lib/harvest/resources/user_assignment.rb', line 19

def set_site
  self.site = self.site + "/projects/#{self.project_id}"
end