Class: Labels::PlateLabelBase
- Inherits:
-
Base
- Object
- Base
- Labels::PlateLabelBase
show all
- Defined in:
- app/models/labels/plate_label_base.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary
collapse
Instance Method Details
#attributes ⇒ Object
4
5
6
7
8
9
10
11
12
|
# File 'app/models/labels/plate_label_base.rb', line 4
def attributes
{
top_left: date_today,
bottom_left: labware.barcode.human,
top_right: workline_identifier,
bottom_right: [labware.role, labware.purpose_name].compact.join(' '),
barcode: labware.barcode.machine
}
end
|
#default_label_template ⇒ Object
18
19
20
|
# File 'app/models/labels/plate_label_base.rb', line 18
def default_label_template
default_label_template_for(:plate_a)
end
|
#default_printer_type ⇒ Object
14
15
16
|
# File 'app/models/labels/plate_label_base.rb', line 14
def default_printer_type
default_printer_type_for(:plate_a)
end
|
#default_sprint_label_template ⇒ Object
22
23
24
|
# File 'app/models/labels/plate_label_base.rb', line 22
def default_sprint_label_template
default_sprint_label_template_for(:plate_a)
end
|