Managing Assignment Cost in Ruby

Aspose.Tasks - Managing Assignment Cost

To manage Assignment Cost using Aspose.Tasks Java for Ruby, simply invoke AssignmentCost module. Here you can see example code.

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2
 3resource_assignments = project.getResourceAssignments().toList()
 4
 5i = 0
 6
 7while i < resource_assignments.size()
 8
 9  assignment = resource_assignments.get(i)
10
11  puts "COST: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').COST).to_string
12
13  puts "ACWP: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').ACWP).to_string
14
15  puts "BCWP: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').BCWP).to_string
16
17  puts "BCWS: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').BCWS).to_string
18
19  puts "--------------------------------------------------------"
20
21  i += 1
22
23end

Download Running Code

Download Managing Assignment Cost (Aspose.Tasks) from any of the below mentioned social coding sites:

Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.