Class: LabelPrinter::Label::BasePlateDouble
- Inherits:
-
Object
- Object
- LabelPrinter::Label::BasePlateDouble
show all
- Includes:
- MultipleDoubleLabels
- Defined in:
- lib/label_printer/label/base_plate_double.rb
Instance Attribute Summary
#count
Instance Method Summary
collapse
#create_labels, #double_label
#create_labels, #labels
Instance Method Details
#assets ⇒ Object
22
23
24
|
# File 'lib/label_printer/label/base_plate_double.rb', line 22
def assets
plates
end
|
#barcode(plate) ⇒ Object
10
11
12
|
# File 'lib/label_printer/label/base_plate_double.rb', line 10
def barcode(plate)
plate.machine_barcode
end
|
#date_today ⇒ Object
14
15
16
|
# File 'lib/label_printer/label/base_plate_double.rb', line 14
def date_today
Time.zone.today.strftime('%e-%^b-%Y')
end
|
#plates ⇒ Object
18
19
20
|
# File 'lib/label_printer/label/base_plate_double.rb', line 18
def plates
@plates || []
end
|