Module: Presenters
- Defined in:
- app/models/presenters.rb,
app/models/presenters/pcr_presenter.rb,
app/models/presenters/tube_presenter.rb,
app/models/presenters/plate_presenter.rb,
app/models/presenters/split_presenter.rb,
app/models/presenters/qcable_presenter.rb,
app/models/presenters/standard_presenter.rb,
app/models/presenters/vac_tube_presenter.rb,
app/models/presenters/tube_rack_presenter.rb,
app/models/presenters/final_tube_presenter.rb,
app/models/presenters/permissive_presenter.rb,
app/models/presenters/unknown_labware_type.rb,
app/models/presenters/rvi_cdna_xp_presenter.rb,
app/models/presenters/simple_tube_presenter.rb,
app/models/presenters/stock_plate_presenter.rb,
app/models/presenters/unknown_tube_presenter.rb,
app/models/presenters/minimal_plate_presenter.rb,
app/models/presenters/tag_plate_384_presenter.rb,
app/models/presenters/unknown_plate_presenter.rb,
app/models/concerns/presenters/robot_controlled.rb,
app/models/concerns/presenters/state_changeless.rb,
app/models/presenters/submission_plate_presenter.rb,
app/models/presenters/minimal_pcr_plate_presenter.rb,
app/models/presenters/minimal_stock_plate_presenter.rb,
app/models/presenters/untagged_plate_passing_presenter.rb,
app/models/presenters/normalised_binned_plate_presenter.rb,
app/models/presenters/single_child_permissive_presenter.rb,
app/models/presenters/cardinal_bank_stock_tube_presenter.rb,
app/models/presenters/concentration_binned_plate_presenter.rb,
app/models/presenters/pcr_cycles_binned_plate_presenter_base.rb,
app/models/presenters/pcr_cycles_binned_plate_using_well_metadata_presenter.rb,
app/models/presenters/pcr_cycles_binned_plate_using_request_metadata_presenter.rb
Overview
Basic core presenter for tubes
Defined Under Namespace
Modules: CreationBehaviour, ExtendedCsv, Presenter, RobotControlled, StateChangeless, Statemachine, StockBehaviour Classes: CardinalBankStockTubePresenter, ConcentrationBinnedPlatePresenter, FinalTubePresenter, MinimalPcrPlatePresenter, MinimalPlatePresenter, MinimalStockPlatePresenter, NormalisedBinnedPlatePresenter, PcrCyclesBinnedPlatePresenterBase, PcrCyclesBinnedPlateUsingRequestMetadataPresenter, PcrCyclesBinnedPlateUsingWellMetadataPresenter, PcrPresenter, PermissivePresenter, PlatePresenter, QcThresholdPresenter, QcablePresenter, RviCdnaXpPresenter, SimpleTubePresenter, SingleChildPermissivePresenter, SplitPresenter, StandardPresenter, StockPlatePresenter, SubmissionPlatePresenter, TagPlate384Presenter, TubePresenter, TubeRackPresenter, TubesWithSources, UnknownLabwareType, UnknownPlatePresenter, UnknownTubePresenter, UntaggedPlatePassingPresenter, VacTubePresenter
Class Method Summary collapse
Class Method Details
.lookup_for(labware) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/models/presenters.rb', line 4 def self.lookup_for(labware) presentation_classes = Settings.purposes[labware.purpose&.uuid || :unknown] return presentation_classes[:presenter_class].constantize if presentation_classes return Presenters::UnknownPlatePresenter if labware.plate? return Presenters::UnknownTubePresenter if labware.tube? raise UnknownLabwareType end |