Setting Resource Properties in Ruby

Aspose.Tasks - Setting Resource Properties

To set resource properties using Aspose.Tasks Java for Ruby, simply invoke SetResourceProperties module. Here you can see example code.

1project = Rjb::import('com.aspose.tasks.Project').new
2rsc = project.getResources().add("Rsc")
3rsc.set(Rjb::import('com.aspose.tasks.Rsc').STANDARD_RATE, Rjb::import('java.math.BigDecimal').valueOf(15))
4rsc.set(Rjb::import('com.aspose.tasks.Rsc').OVERTIME_RATE, Rjb::import('java.math.BigDecimal').valueOf(20))
5puts "Set resource properties"

Download Running Code

Download Setting Resource Properties (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.