Class: Presenters::UnknownPlatePresenter
- Inherits:
-
PlatePresenter
- Object
- PlatePresenter
- Presenters::UnknownPlatePresenter
- 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
Instance Method Summary collapse
- #add_unknown_plate_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
- #label ⇒ Object
- #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_plate_warnings ⇒ Object
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_states ⇒ Object Originally defined in module Statemachine::Shared
#control_state_change ⇒ Object Originally defined in module StateChangeless
#default_printer ⇒ Object
32 33 34 |
# File 'app/models/presenters/unknown_plate_presenter.rb', line 32 def default_printer :plate_a end |
#default_state_change ⇒ Object Originally defined in module StateChangeless
#default_transition ⇒ Object Originally defined in module Statemachine::Shared
#label ⇒ Object
20 21 22 |
# File 'app/models/presenters/unknown_plate_presenter.rb', line 20 def label Labels::PlateLabel.new(labware) end |
#robot? ⇒ Boolean
12 13 14 |
# File 'app/models/presenters/unknown_plate_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_plate_presenter.rb', line 16 def well_failing_applicable? false end |