Class: Presenters::UnknownTubePresenter
- Inherits:
-
TubePresenter
- Object
- TubePresenter
- Presenters::UnknownTubePresenter
- 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
- #add_unknown_tube_warnings ⇒ Object
- #all_plate_states ⇒ Object included from Statemachine::Shared
- #control_state_change ⇒ Object included from StateChangeless
- #default_printer ⇒ Object
- #default_state_change ⇒ Object included from StateChangeless
- #default_transition ⇒ Object included from Statemachine::Shared
- #robot? ⇒ Boolean
- #state ⇒ Object included from Statemachine::Shared
-
#state=(value) ⇒ Object
included
from 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
Instance Method Details
#add_unknown_tube_warnings ⇒ Object
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_states ⇒ Object Originally defined in module Statemachine::Shared
#control_state_change ⇒ Object Originally defined in module StateChangeless
#default_printer ⇒ Object
27 28 29 |
# File 'app/models/presenters/unknown_tube_presenter.rb', line 27 def default_printer :tube end |
#default_state_change ⇒ Object Originally defined in module StateChangeless
#default_transition ⇒ Object Originally defined in module Statemachine::Shared
#robot? ⇒ Boolean
12 13 14 |
# File 'app/models/presenters/unknown_tube_presenter.rb', line 12 def robot? false end |
#state ⇒ Object 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
16 17 18 |
# File 'app/models/presenters/unknown_tube_presenter.rb', line 16 def well_failing_applicable? false end |