Class: Convertr::Scheduler::AllBtFirst

Inherits:
Base
  • Object
show all
Defined in:
lib/convertr/scheduler/all_bt_first.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #schedule_next_task

Constructor Details

This class inherits a constructor from Convertr::Scheduler::Base

Instance Method Details

#get_task_for_schedule(convertor) ⇒ Object



4
5
6
7
# File 'lib/convertr/scheduler/all_bt_first.rb', line 4

def get_task_for_schedule(convertor)
  Convertr::Task.for_convertor(convertor).first ||
  Convertr::Task.without_convertor.first
end