Class: Labels::TubeRackLabel
- Inherits:
-
Base
- Object
- Base
- Labels::TubeRackLabel
- Defined in:
- app/models/labels/tube_rack_label.rb
Overview
Handles generating the parameters the printing from for Tube Racks
Instance Method Summary collapse
- #attributes ⇒ Object
- #default_label_template ⇒ Object
- #default_printer_type ⇒ Object
- #default_sprint_label_template ⇒ Object
Instance Method Details
#attributes ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'app/models/labels/tube_rack_label.rb', line 5 def attributes { top_left: date_today, bottom_left: labware..human, top_right: labware.name, bottom_right: labware.purpose_name, barcode: labware..machine } end |
#default_label_template ⇒ Object
19 20 21 |
# File 'app/models/labels/tube_rack_label.rb', line 19 def default_label_template default_label_template_for(:plate_a) end |
#default_printer_type ⇒ Object
15 16 17 |
# File 'app/models/labels/tube_rack_label.rb', line 15 def default_printer_type default_printer_type_for(:plate_a) end |
#default_sprint_label_template ⇒ Object
23 24 25 |
# File 'app/models/labels/tube_rack_label.rb', line 23 def default_sprint_label_template default_sprint_label_template_for(:plate_a) end |