General Properties in Ruby
Contents
[
Hide
Show
]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')
2collector = Rjb::import('com.aspose.tasks.ChildTasksCollector').new
3Rjb::import('com.aspose.tasks.TaskUtils').apply(project.getRootTask(), collector, 0)
4tasks = collector.getTasks()
5tsk = Rjb::import('com.aspose.tasks.Tsk')
6i = 0
7while i < tasks.size()
8 task = tasks.get(i)
9 puts "Task Id:" + task.get(tsk.ID).to_string
10 puts "Task Uid: " + task.get(tsk.UID).to_string
11 puts "Task Name: " + task.get(tsk.NAME).to_string
12 puts "Task Start: " + task.get(tsk.START).to_string
13 puts "Task Finish: "+ task.get(tsk.FINISH).to_string
14 puts "---------------------------------------------"
15 i += 1
16end
Download Running Code
Download General Properties (Aspose.Tasks) from any of the below mentioned social coding sites: