Class: Presenters::UnknownPlatePresenter

Inherits:
PlatePresenter show all
Includes:
StateChangeless, Statemachine::DoesNotAllowLibraryPassing, Statemachine::Shared, Statemachine::StateDoesNotAllowChildCreation
Defined in:
app/models/presenters/unknown_plate_presenter.rb

Overview

rubocop:todo Style/Documentation

Direct Known Subclasses

TagPlate384Presenter

Instance Method Summary collapse

Instance Method Details

#add_unknown_plate_warningsObject



24
25
26
27
28
29
30
# File 'app/models/presenters/unknown_plate_presenter.rb', line 24

def add_unknown_plate_warnings
  errors.add(
    :plate,
    "type '#{labware.purpose_name}' is not a limber plate. " \
      'Perhaps you are using the wrong pipeline application?'
  )
end

#all_plate_statesObject Originally defined in module Statemachine::Shared

#control_state_changeObject Originally defined in module StateChangeless

#default_printerObject



32
33
34
# File 'app/models/presenters/unknown_plate_presenter.rb', line 32

def default_printer
  :plate_a
end

#default_state_changeObject Originally defined in module StateChangeless

#default_transitionObject Originally defined in module Statemachine::Shared

#labelObject



20
21
22
# File 'app/models/presenters/unknown_plate_presenter.rb', line 20

def label
  Labels::PlateLabel.new(labware)
end

#robot?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/models/presenters/unknown_plate_presenter.rb', line 12

def robot?
  false
end

#stateObject Originally defined in module Statemachine::Shared

#state=(value) ⇒ Object Originally defined in module Statemachine::Shared

– We ignore the assignment of the state because that is the statemachine getting in before the plate has been loaded. ++

#well_failing_applicable?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'app/models/presenters/unknown_plate_presenter.rb', line 16

def well_failing_applicable?
  false
end