Managing Resource Extended Attributes in Ruby
Contents
[
Hide
Show
]Aspose.Tasks - Extended Resource Attributes
To set Extended Resource Attributes using Aspose.Tasks Java for Ruby, simply invoke ExtendedResourceAttributes module. Here you can see example code.
Ruby Code
1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
2
3res = project.getResources().toList().get(0)
4
5attribute = Rjb::import('com.aspose.tasks.ExtendedAttribute').new
6
7attribute.setFieldId("11")
8
9attribute.setValue("MyValueEA")
10
11attribute.setValueGuid("MyValueGuidEA")
12
13res.getExtendedAttributes().add(attribute)
14
15puts "Set extended resource attributes."
Download Running Code
Download Extended Resource Attributes (Aspose.Tasks) from any of the below mentioned social coding sites: