Class: PrepKitBarcodeTask

Inherits:
Task show all
Defined in:
app/models/prep_kit_barcode_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

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


20
21
22
# File 'app/models/prep_kit_barcode_task.rb', line 20

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

#included_for_do_taskObject


16
17
18
# File 'app/models/prep_kit_barcode_task.rb', line 16

def included_for_do_task
  [:pipeline, { requests: :target_asset }]
end

#included_for_render_taskObject


12
13
14
# File 'app/models/prep_kit_barcode_task.rb', line 12

def included_for_render_task
  [:pipeline]
end

#partialObject


3
4
5
# File 'app/models/prep_kit_barcode_task.rb', line 3

def partial
  'prep_kit_barcode_batches'
end

#render_task(workflows_controller, params, _user) ⇒ Object


7
8
9
10
# File 'app/models/prep_kit_barcode_task.rb', line 7

def render_task(workflows_controller, params, _user)
  super
  workflows_controller.render_prep_kit_barcode_task(self, params)
end