Class: Search::FindOutstandingIlluminaBPrePcrPlates

Inherits:
Search show all
Defined in:
app/models/search/find_outstanding_illumina_b_pre_pcr_plates.rb

Overview

Pre_PCR plates will remain 'started; until the run is complete. Handled finding of plates for the defunct Illumina-B pipelines Can be deprecated.

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Uuid::Uuidable

included, #unsaved_uuid!, #uuid

Methods inherited from ApplicationRecord

convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!

Methods included from Squishify

extended

Methods included from Warren::BroadcastMessages

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

Class Method Details

.pre_pcr_plate_purposeObject


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

def self.pre_pcr_plate_purpose
  PlatePurpose.find_by(name: 'ILB_STD_PREPCR')
end

Instance Method Details

#scope(_criteria) ⇒ Object


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

def scope(_criteria)
  Plate..include_plate_purpose.with_purpose(pre_pcr_plate_purpose).in_state(%w[pending started])
end