Class: Labels::TubeRackLabel

Inherits:
Base
  • Object
show all
Defined in:
app/models/labels/tube_rack_label.rb

Overview

Handles generating the parameters the printing from for Tube Racks

Instance Method Summary collapse

Instance Method Details

#attributesObject



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.barcode.human,
    top_right: labware.name,
    bottom_right: labware.purpose_name,
    barcode: labware.barcode.machine
  }
end

#default_label_templateObject



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_typeObject



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_templateObject



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