Method: OpenTrons::OTProtocol#initialize

Defined in:
lib/opentrons/otprotocol.rb

#initialize(params: {}) ⇒ OTProtocol

Returns a new instance of OTProtocol.



36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/opentrons/otprotocol.rb', line 36

def initialize(params: {})
  @protocol_schema = params.fetch(:protocol_schema, "1.0.0")
  @robot = params.fetch(:robot, {"model" => "OT-2 Standard"})
  @designer_application = params.fetch(:designer_application, {})
   = params.fetch(:metadata, {})

  @labware = params.fetch(:labware, Labware.new(self))
  @trash = labware.load('fixed-trash', '12', 'Trash')

  @instruments = params.fetch(:instruments, Instruments.new(self))

  @commands = params.fetch(:commands, Commands.new(self))
end