Working with Resource Assignment Budgets in Ruby

Aspose.Tasks - Assignment Budget

To get Assignment Budget using Aspose.Tasks Java for Ruby, simply invoke AssignmentBudget module. Here you can see example code.

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2resource_assignments = project.getResourceAssignments().toList()
 3i = 0
 4while i < resource_assignments.size()
 5  assignment = resource_assignments.get(i)
 6  puts "Budget Cost: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').BUDGET_COST).toString()
 7  puts "Budget Work: " + assignment.get(Rjb::import('com.aspose.tasks.Asn').BUDGET_WORK).toString()
 8  puts "--------------------------------------------------------"
 9  i += 1
10end

Download Running Code

Download Assignment Budget (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.