Class: LabelPrinter::Label::RobotBeds
- Defined in:
- lib/label_printer/label/robot_beds.rb
Instance Attribute Summary collapse
-
#plates ⇒ Object
readonly
Returns the value of attribute plates.
Attributes included from MultipleLabels
Instance Method Summary collapse
- #bottom_right(bed) ⇒ Object
-
#initialize(beds) ⇒ RobotBeds
constructor
A new instance of RobotBeds.
- #top_right(bed) ⇒ Object
Methods inherited from BasePlate
#assets, #barcode, #bottom_left, #build_label, #date_today, #top_far_right, #top_left
Methods included from MultipleLabels
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
#plates ⇒ Object (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..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.}" end |