Class: PlateTransferTask

Inherits:
Task show all
Defined in:
app/models/plate_transfer_task.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Methods inherited from Task

#can_link_directly?, #can_process?, #find_batch, #find_batch_requests, #included_for_do_task

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Instance Method Details

#do_task(workflows_controller, params, _user) ⇒ Object


9
10
11
# File 'app/models/plate_transfer_task.rb', line 9

def do_task(workflows_controller, params, _user)
  workflows_controller.do_plate_transfer_task(self, params)
end

#included_for_render_taskObject


17
18
19
# File 'app/models/plate_transfer_task.rb', line 17

def included_for_render_task
  [:pipeline]
end

#partialObject


13
14
15
# File 'app/models/plate_transfer_task.rb', line 13

def partial
  self.class.to_s.underscore.chomp('_task')
end

#render_task(workflows_controller, params, _user) ⇒ Object


5
6
7
# File 'app/models/plate_transfer_task.rb', line 5

def render_task(workflows_controller, params, _user)
  ActiveRecord::Base.transaction { workflows_controller.render_plate_transfer_task(self, params) }
end