Class: LabelPrinter::Label::BatchRedirect
- Inherits:
-
Object
- Object
- LabelPrinter::Label::BatchRedirect
- Defined in:
- lib/label_printer/label/batch_redirect.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options) ⇒ BatchRedirect
constructor
A new instance of BatchRedirect.
- #labels ⇒ Object
Constructor Details
#initialize(options) ⇒ BatchRedirect
Returns a new instance of BatchRedirect.
7 8 9 10 |
# File 'lib/label_printer/label/batch_redirect.rb', line 7 def initialize() @printer_type_class = [:printer_type_class] @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/label_printer/label/batch_redirect.rb', line 5 def @options end |
Instance Method Details
#labels ⇒ Object
12 13 14 |
# File 'lib/label_printer/label/batch_redirect.rb', line 12 def labels @printer_type_class.double_label? ? BatchPlateDouble.new().labels : BatchPlate.new().labels end |