Class: SamplePrepQcTask

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

Defined Under Namespace

Classes: SamplePrepQcData

Instance Method Summary collapse

Methods inherited from Task

#find_batch, #find_batch_requests, #get_descriptor_value, get_subclass_attribute_options, #get_subclass_attribute_options, #get_subclass_attribute_value, get_subclass_attributes, #get_subclass_attributes, #included_for_do_task, #included_for_render_task, init_class, #set_descriptor_value, set_subclass_attribute, #set_subclass_attribute_value, #sub_events_for

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Warren::BroadcastMessages

#broadcast, included, #queue_associated_for_broadcast, #queue_for_broadcast, #warren

Instance Method Details

#create_render_element(request) ⇒ Object


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

def create_render_element(request)
  request.asset && SamplePrepQcData.new(request)
end

#do_task(workflow, params) ⇒ Object


21
22
23
# File 'app/models/sample_prep_qc_task.rb', line 21

def do_task(workflow, params)
  workflow.do_sample_prep_qc_task(self, params)
end

#partialObject


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

def partial
  'sample_prep_qc_batches'
end

#render_task(workflow, params) ⇒ Object


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

def render_task(workflow, params)
  super
  workflow.render_sample_prep_qc_task(self, params)
end