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')
2resources = project.getResources().toList()
3rsc = Rjb::import('com.aspose.tasks.Rsc')
4i = 0
5while i < resources.size()
6 resource = resources.get(i)
7 if resource.get(rsc.NAME) != nil
8 puts "Cost: " + resource.get(rsc.COST).to_string
9 puts "ACWP: " + resource.get(rsc.ACWP).to_string
10 puts "BCWS: " + resource.get(rsc.BCWS).to_string
11 puts "BCWP: " + resource.get(rsc.BCWP).to_string
12 puts "---------------------------------------------"
13 end
14 i += 1
15end
Download Running Code
Download Resource Cost (Aspose.Tasks) from any of the below mentioned social coding sites: