Class: LabelPrinter::Label::RobotBeds

Inherits:
BasePlate
  • Object
show all
Defined in:
lib/label_printer/label/robot_beds.rb

Instance Attribute Summary collapse

Attributes included from MultipleLabels

#count

Instance Method Summary collapse

Methods inherited from BasePlate

#assets, #barcode, #bottom_left, #build_label, #date_today, #top_far_right, #top_left

Methods included from MultipleLabels

#create_labels, #labels

Constructor Details

#initialize(beds) ⇒ RobotBeds

Returns a new instance of RobotBeds.



7
8
9
10
# File 'lib/label_printer/label/robot_beds.rb', line 7

def initialize(beds)
  super()
  @plates = beds
end

Instance Attribute Details

#platesObject (readonly)

Returns the value of attribute plates.



5
6
7
# File 'lib/label_printer/label/robot_beds.rb', line 5

def plates
  @plates
end

Instance Method Details

#bottom_right(bed) ⇒ Object



16
17
18
# File 'lib/label_printer/label/robot_beds.rb', line 16

def bottom_right(bed)
  bed.ean13_barcode.to_s
end

#top_right(bed) ⇒ Object



12
13
14
# File 'lib/label_printer/label/robot_beds.rb', line 12

def top_right(bed)
  "Bed #{bed.barcode}"
end