Class: Presenters::UnknownTubePresenter

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

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#add_unknown_tube_warningsObject



20
21
22
23
24
25
# File 'app/models/presenters/unknown_tube_presenter.rb', line 20

def add_unknown_tube_warnings
  errors.add(
    :plate,
    "type '#{labware.purpose_name}' is not a limber tube. 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



27
28
29
# File 'app/models/presenters/unknown_tube_presenter.rb', line 27

def default_printer
  :tube
end

#default_state_changeObject Originally defined in module StateChangeless

#default_transitionObject Originally defined in module Statemachine::Shared

#robot?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/models/presenters/unknown_tube_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_tube_presenter.rb', line 16

def well_failing_applicable?
  false
end