Class: LabelPrinter::Label::BasePlateDouble

Inherits:
Object
  • Object
show all
Includes:
MultipleDoubleLabels
Defined in:
lib/label_printer/label/base_plate_double.rb

Instance Attribute Summary

Attributes included from MultipleLabels

#count

Instance Method Summary collapse

Methods included from MultipleDoubleLabels

#create_labels, #double_label

Methods included from MultipleLabels

#create_labels, #labels

Instance Method Details

#assetsObject



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_todayObject



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

#platesObject



18
19
20
# File 'lib/label_printer/label/base_plate_double.rb', line 18

def plates
  @plates || []
end