Sha256: 56a306f8bbf275c17f6fbe550c63d483f41ee696d8647f451603f48a980b2749

Contents?: true

Size: 1.1 KB

Versions: 1

Compression:

Stored size: 1.1 KB

Contents

module Asposetasksjava
  module CurrencyDigits
    def initialize()
    	# Getting Currency Digits
    	get_currency_digits()

    	# Getting Currency Digits
    	set_currency_digits()
    end

    def get_currency_digits()
        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')

        puts "Currency Digits: " + project.get(Rjb::import('com.aspose.tasks.Prj').CURRENCY_DIGITS).to_string
    end

    def set_currency_digits()
        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')

        project.set(Rjb::import('com.aspose.tasks.Prj').CURRENCY_DIGITS, 2)

        project.save(data_dir + "ProjectCurrDigits.mpp", Rjb::import('com.aspose.tasks.SaveFileFormat').MPP)

        puts "Set currency digits."
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
asposetasksjava-0.0.1 lib/asposetasksjava/Currencies/currencydigits.rb