Class: LabelPrinter::Label::AssetTube

Inherits:
BaseTube
  • Object
show all
Defined in:
lib/label_printer/label_printer/label/asset_tube.rb

Instance Attribute Summary collapse

Attributes included from MultipleLabels

#count

Instance Method Summary collapse

Methods inherited from BaseTube

#assets, #barcode, #bottom_line, #create_label, #date_today, #middle_line, #round_label_bottom_line, #round_label_top_line

Methods included from MultipleLabels

#create_labels, #label, #labels, #to_h

Constructor Details

#initialize(tubes) ⇒ AssetTube

Returns a new instance of AssetTube


6
7
8
# File 'lib/label_printer/label_printer/label/asset_tube.rb', line 6

def initialize(tubes)
  @tubes = tubes
end

Instance Attribute Details

#tubesObject (readonly)

Returns the value of attribute tubes


4
5
6
# File 'lib/label_printer/label_printer/label/asset_tube.rb', line 4

def tubes
  @tubes
end

Instance Method Details

#top_line(tube) ⇒ Object


10
11
12
# File 'lib/label_printer/label_printer/label/asset_tube.rb', line 10

def top_line(tube)
  tube.name_for_label.to_s
end