Editing Task Baseline Durations in Ruby

Aspose.Tasks - Task Baseline Duration

To get Task Baseline Duration using Aspose.Tasks Java for Ruby, simply invoke TaskBaselineDuration module. Here you can see example code.

Ruby Code

oneSecond = 10000000
oneMinute = 60 * oneSecond
oneHour = 60 * oneMinute
project = Rjb::import('com.aspose.tasks.Project').new
task = project.getRootTask().getChildren().add("Task")
baseline = task.getBaselines().toList().get(0)
duration = baseline.getDuration().toDouble()
baseline_duration = duration / oneHour
puts baseline_duration

Download Running Code

Download Task Baseline Duration (Aspose.Tasks) from any of the below mentioned social coding sites: