Revision history [back]
I agree with David's suggestion to use ScheduleRuleset. However, I think your immediate problem is that you need to call the .new method to create a new instance of a Ruby class:
myschedule=OpenStudio::Model::ScheduleCompact.new(model)