Default Project Properties in Ruby

Aspose.Tasks - Default Project Properties

To get Default Project Properties using Aspose.Tasks Java for Ruby, call get_default_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')
3puts "Project Version : " + project.get(prj.SAVE_VERSION).to_string
4puts "New Task Default Start: "+ project.get(prj.DEFAULT_START_TIME).to_string
5puts "New Task Default Type: "+ project.get(prj.DEFAULT_TASK_TYPE).to_string
6puts "Resource Default Standard Rate: "+ project.get(prj.DEFAULT_STANDARD_RATE).to_string
7puts "Resource Default Overtime Rate: "+ project.get(prj.DEFAULT_OVERTIME_RATE).to_string
8puts "Default Task EV Method: "+ project.get(prj.DEFAULT_TASK_EV_METHOD).to_string
9puts "Default Cost Accrual: "+ project.get(prj.DEFAULT_FIXED_COST_ACCRUAL).to_string

Download Running Code

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