General Properties in Ruby

Aspose.Tasks - Getting General Properties

To get General Properties using Aspose.Tasks Java for Ruby, call get_general_properties method of TasksProperties module. Here you can see example code.

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2
 3collector = Rjb::import('com.aspose.tasks.ChildTasksCollector').new
 4
 5Rjb::import('com.aspose.tasks.TaskUtils').apply(project.getRootTask(), collector, 0)
 6
 7tasks = collector.getTasks()
 8
 9tsk = Rjb::import('com.aspose.tasks.Tsk')
10
11i = 0
12
13while i < tasks.size()
14
15    task = tasks.get(i)
16
17    puts "Task Id:" + task.get(tsk.ID).to_string
18
19    puts "Task Uid: " + task.get(tsk.UID).to_string
20
21    puts "Task Name: " + task.get(tsk.NAME).to_string
22
23    puts "Task Start: " + task.get(tsk.START).to_string
24
25    puts "Task Finish: "+  task.get(tsk.FINISH).to_string
26
27    puts "---------------------------------------------"
28
29    i += 1
30
31end

Download Running Code

Download General 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.