sanger/limber

View on GitHub
app/models/labels/plate_label_xp_base.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class Labels::PlateLabelXpBase < Labels::PlateLabelBase # rubocop:todo Style/Documentation
  def attributes
    super.merge(barcode: labware.barcode.human)
  end

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