Class: Presenters::CardinalBankStockTubePresenter

Inherits:
SimpleTubePresenter show all
Defined in:
app/models/presenters/cardinal_bank_stock_tube_presenter.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#parent_barcodeObject



18
19
20
21
# File 'app/models/presenters/cardinal_bank_stock_tube_presenter.rb', line 18

def parent_barcode
  parent_plate = labware.parents.first
  parent_plate.present? ? parent_plate.barcode.human : 'N/A'
end

#stock_blood_tube_barcodeObject



14
15
16
# File 'app/models/presenters/cardinal_bank_stock_tube_presenter.rb', line 14

def stock_blood_tube_barcode
  labware.aliquots.present? ? labware.aliquots.first.sample..supplier_name : 'N/A'
end