Class: AssignTagsToTubesTask

Inherits:
AssignTagsTask show all
Defined in:
app/models/assign_tags_to_tubes_task.rb

Overview

Note:

At time of writing (3/4/2019) this is used in: “PacBio Tagged Library Prep”

A Task used in library creation pipelines Applies the selected tags to the library tubes.

Instance Method Summary collapse

Methods inherited from AssignTagsTask

#partial, #render_task

Methods inherited from Task

#can_link_directly?, #can_process?, #find_batch, #find_batch_requests, #included_for_do_task, #partial, #render_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


10
11
12
# File 'app/models/assign_tags_to_tubes_task.rb', line 10

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

#included_for_render_taskObject


14
15
16
17
18
19
# File 'app/models/assign_tags_to_tubes_task.rb', line 14

def included_for_render_task
  [
    { requests: [{ asset: [:map, :asset_groups, { primary_aliquot: :sample }] }, :target_asset, :batch_request] },
    :pipeline
  ]
end