Class: Labels::TubeLabel
- Inherits:
-
Base
- Object
- Base
- Labels::TubeLabel
show all
- Defined in:
- app/models/labels/tube_label.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary
collapse
Instance Method Details
#attributes ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# File 'app/models/labels/tube_label.rb', line 4
def attributes
{
first_line: first_line,
second_line: second_line,
third_line: labware.purpose_name,
fourth_line: date_today,
round_label_top_line: labware.barcode.prefix,
round_label_bottom_line: labware.barcode.number,
barcode: labware.barcode.ean13
}
end
|
#default_label_template ⇒ Object
23
24
25
|
# File 'app/models/labels/tube_label.rb', line 23
def default_label_template
default_label_template_for(:tube)
end
|
#default_printer_type ⇒ Object
19
20
21
|
# File 'app/models/labels/tube_label.rb', line 19
def default_printer_type
default_printer_type_for(:tube)
end
|
#default_sprint_label_template ⇒ Object
27
28
29
|
# File 'app/models/labels/tube_label.rb', line 27
def default_sprint_label_template
default_sprint_label_template_for(:tube)
end
|