Class: Robot::Generator::Hamilton

Inherits:
Base
  • Object
show all
Includes:
Behaviours::HamiltonDefault
Defined in:
app/models/robot/generator/hamilton.rb

Overview

Handles picking file generation for Hamilton robots

Direct Known Subclasses

Beckman

Instance Attribute Summary

Attributes inherited from Base

#batch, #ctrl_barcode_index, #dest_barcode_index, #picking_data, #plate_barcode, #source_barcode_index

Instance Method Summary collapse

Methods inherited from Base

#initialize, #total_volume

Constructor Details

This class inherits a constructor from Robot::Generator::Base

Instance Method Details

#as_textObject


16
17
18
# File 'app/models/robot/generator/hamilton.rb', line 16

def as_text
  mapping(picking_data)
end

#filename(base) ⇒ Object


7
8
9
# File 'app/models/robot/generator/hamilton.rb', line 7

def filename(base)
  "#{base}.csv"
end

#typeObject

The MIME type of the generated file.


12
13
14
# File 'app/models/robot/generator/hamilton.rb', line 12

def type
  'text/csv'
end