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.

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 Warren::BroadcastMessages

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

Class Method Details

.pre_pcr_plate_purposeObject


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

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

Instance Method Details

#scope(_criteria) ⇒ Object


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

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