Class: LabelPrinter::Label::MultiplexedTube
- Defined in:
- lib/label_printer/label/multiplexed_tube.rb
Instance Attribute Summary collapse
-
#tubes ⇒ Object
readonly
Returns the value of attribute tubes.
Attributes included from MultipleLabels
Instance Method Summary collapse
- #first_line(tube) ⇒ Object
-
#initialize(options) ⇒ MultiplexedTube
constructor
A new instance of MultiplexedTube.
- #second_line(tube) ⇒ Object
Methods inherited from BaseTube
#assets, #barcode, #build_label, #date_today, #round_label_bottom_line, #round_label_top_line, #third_line
Methods included from MultipleLabels
Constructor Details
#initialize(options) ⇒ MultiplexedTube
Returns a new instance of MultiplexedTube.
7 8 9 10 11 |
# File 'lib/label_printer/label/multiplexed_tube.rb', line 7 def initialize() super() @tubes = [:assets] @count = [:count] end |
Instance Attribute Details
#tubes ⇒ Object (readonly)
Returns the value of attribute tubes.
5 6 7 |
# File 'lib/label_printer/label/multiplexed_tube.rb', line 5 def tubes @tubes end |
Instance Method Details
#first_line(tube) ⇒ Object
13 14 15 |
# File 'lib/label_printer/label/multiplexed_tube.rb', line 13 def first_line(tube) tube.name_for_label.to_s end |
#second_line(tube) ⇒ Object
17 18 19 |
# File 'lib/label_printer/label/multiplexed_tube.rb', line 17 def second_line(tube) tube. end |