Class: CherrypickTask::PickTarget::ByRow
- Defined in:
- app/models/cherrypick_task/pick_target.rb
Overview
Deals with generating the pick plate by travelling in a row direction, so A1, A2, A3 …
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#completed_view ⇒ Object
rubocop:todo Style/MultilineBlockChain.
Methods inherited from Base
#add_any_consecutive_control_requests, #add_any_initial_control_requests, #add_control_request, #add_remaining_control_requests, #content, #create_control_requests!, #empty?, #full?, #initialize, #push, #push_with_controls, #remaining_wells
Constructor Details
This class inherits a constructor from CherrypickTask::PickTarget::Base
Instance Method Details
#completed_view ⇒ Object
rubocop:todo Style/MultilineBlockChain
162 163 164 165 166 167 168 |
# File 'app/models/cherrypick_task/pick_target.rb', line 162 def completed_view @wells.dup.tap do |wells| complete(wells) end.each_with_index.inject([]) do |wells, (well, index)| wells.tap { wells[@shape.horizontal_to_vertical(index + 1, @size)] = well } end.compact end |