Resource Cost in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Resource Cost
To get Resource Cost using Aspose.Tasks Java for Ruby, simply invoke ResourceCost module. Here you can see example code.
1project = Rjb::import('com.aspose.tasks.Project').new('project.mpp')
2
3resources = project.getResources().toList()
4
5rsc = Rjb::import('com.aspose.tasks.Rsc')
6
7i = 0
8
9while i < resources.size()
10
11 resource = resources.get(i)
12
13 if resource.get(rsc.NAME) != nil
14
15 puts "Cost: " + resource.get(rsc.COST).to_string
16
17 puts "ACWP: " + resource.get(rsc.ACWP).to_string
18
19 puts "BCWS: " + resource.get(rsc.BCWS).to_string
20
21 puts "BCWP: " + resource.get(rsc.BCWP).to_string
22
23 puts "---------------------------------------------"
24
25 end
26
27 i += 1
28
29end
Download Running Code
Download Resource Cost (Aspose.Tasks) from any of the below mentioned social coding sites: