class OpenTrons::PipetteCommand
Attributes
location[RW]
pipette[RW]
Public Class Methods
new(command, pipette, location)
click to toggle source
Calls superclass method
OpenTrons::Command::new
# File lib/opentrons/commands.rb, line 52 def initialize(command, pipette, location) super(command, {}) pipette_id = pipette.instruments.instrument_hash.key pipette params["pipette"] = pipette_id if location.is_a? Array labware_item = location[0].labware_item params["labware"] = labware_item.labware.labware_hash.key labware_item params["well"] = location[0].location params["position"] = location[1] else labware_item = location.labware_item params["labware"] = labware_item.labware.labware_hash.key labware_item params["well"] = location.location end end