Class: Labels::PlateLabelXpBase

Inherits:
PlateLabelBase
  • Object
show all
Defined in:
app/models/labels/plate_label_xp_base.rb

Overview

rubocop:todo Style/Documentation

Direct Known Subclasses

PlateLabelXp, PlateSplit

Instance Method Summary collapse

Instance Method Details

#attributesObject



4
5
6
# File 'app/models/labels/plate_label_xp_base.rb', line 4

def attributes
  super.merge(barcode: labware.barcode.human)
end

#qc_label_definitionsObject



8
9
10
11
12
13
14
15
16
17
# File 'app/models/labels/plate_label_xp_base.rb', line 8

def qc_label_definitions
  [
    {
      top_left: date_today,
      bottom_left: "#{labware.barcode.human} QC",
      top_right: workline_identifier,
      barcode: "#{labware.barcode.human}-QC"
    }
  ]
end