Module: LabelPrinter::Label::BatchPlates

Included in:
BatchPlate, BatchPlateDouble
Defined in:
lib/label_printer/label_printer/batch_plates.rb

Instance Method Summary collapse

Instance Method Details

#platesObject


6
7
8
9
# File 'lib/label_printer/label_printer/batch_plates.rb', line 6

def plates
  barcodes = printable.select { |_barcode, check| check == 'on' }.keys
  batch.plate_group_barcodes.keys.select { |plate| barcodes.include?(plate.human_barcode) }
end