Sha256: 29b29576630453156a524bc26cc0cb23813cf5a7ba2ac2ea283052a7440cbeac

Contents?: true

Size: 779 Bytes

Versions: 1

Compression:

Stored size: 779 Bytes

Contents

module Asposetasksjava
  module TaskBaselineDuration
    def initialize()
        data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/'
        
        onesec = 10000000
        onemin = 60 * onesec
        onehour = 60 * onemin
        
        # Instantiate project object
        project = Rjb::import('com.aspose.tasks.Project').new
		
    		# Creating TaskBaseline:
        task = project.getRootTask().getChildren().add("Task")
        project.setBaseline(Rjb::import('com.aspose.tasks.BaselineType').Baseline)

        baseline = task.getBaselines().toList().get(0)
        duration = baseline.getDuration().toDouble()
        baseline_duration = duration / onehour
        puts baseline_duration
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/TaskBaselines/taskbaselineduration.rb