General Calendar Properties in Ruby

Aspose.Tasks - General Calendar Properties

To get Calendar Properties using Aspose.Tasks Java for Ruby, simply invoke CalendarProperties module. Here you can see example code.

 1project = Rjb::import('com.aspose.tasks.Project').new('test_tasks.mpp')
 2calendars = project.getCalendars().toList()
 3i = 0
 4while i < calendars.size()
 5  cal = calendars.get(i)
 6  if cal.getName() != nil
 7    puts "Base Calendar : "
 8    if cal.isBaseCalendar()
 9      puts "Self"
10    else
11      cal.getBaseCalendar().getName()
12    end
13    puts "UID : " + cal.getUid().to_s
14    puts "Name : " + cal.getName().to_s
15  end
16  i += 1
17end

Download Running Code

Download General Calendar 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.