Class: Convertr::SchedulerFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/convertr/scheduler_factory.rb

Class Method Summary collapse

Class Method Details

.create(name = 'AllBtFirst') ⇒ Object



6
7
8
9
# File 'lib/convertr/scheduler_factory.rb', line 6

def self.create(name = 'AllBtFirst')
  name ||= 'AllBtFirst'
  Convertr::Scheduler.const_get(name).new
end