Sha256: 28499904b75f052bdfbd99914f6b9b0b5a6a0a7c022006cd69f5c2ce086a29c5

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

module Asposetasksjava
  module ExtendedResourceAttributes
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
                
        # Instantiate project object
        project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp')

		res = project.getResources().toList().get(0)

		ea = Rjb::import('com.aspose.tasks.ExtendedAttribute').new
		ea.setFieldId("11")
		ea.setValue("MyValueEA")
		ea.setValueGuid("MyValueGuidEA")
		res.getExtendedAttributes().add(ea)

		puts "Set extended resource attributes."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Resources/extendedresourceattributes.rb