General Project Properties in Ruby

Aspose.Tasks - General Project Properties

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

Ruby Code

 1project = Rjb::import('com.aspose.tasks.Project').new('Sample.xml')
 2prj = Rjb::import('com.aspose.tasks.Prj')
 3if project.get(prj.SCHEDULE_FROM_START).getValue()
 4    puts "Project Start Date : " + project.get(prj.START_DATE).to_string
 5else
 6    puts "Project Finish Date : " + project.get(prj.FINISH_DATE).to_string
 7end
 8strSchedule = project.get(prj.SCHEDULE_FROM_START).getValue() ? "Project Start Date" : "Project Finish Date"
 9puts "Project Schedule From : " + strSchedule.to_s
10puts "Current Date : " + project.get(prj.CURRENT_DATE).to_string
11puts "Status Date : " + project.get(prj.STATUS_DATE).to_string
12puts "Calendar : " + project.get(prj.CALENDAR).getName().to_s

Download Running Code

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