Working with Calendars 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')
 2
 3calendars = project.getCalendars().toList()
 4
 5i = 0
 6
 7while i < calendars.size()
 8
 9  cal = calendars.get(i)
10
11  if cal.getName() != nil
12
13    puts "Base Calendar : "
14
15    if cal.isBaseCalendar()
16
17      puts "Self"
18
19    else
20
21      cal.getBaseCalendar().getName()
22
23    end
24
25    puts "UID : " + cal.getUid().to_s
26
27    puts "Name : " + cal.getName().to_s
28
29  end
30
31  i += 1
32
33end

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.