Class: LabelPrinter::Label::SampleManifestRedirect
- Inherits:
-
Object
- Object
- LabelPrinter::Label::SampleManifestRedirect
- Defined in:
- lib/label_printer/label/sample_manifest_redirect.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#sample_manifest ⇒ Object
readonly
Returns the value of attribute sample_manifest.
Instance Method Summary collapse
-
#initialize(options) ⇒ SampleManifestRedirect
constructor
A new instance of SampleManifestRedirect.
-
#labels ⇒ Object
rubocop:todo Metrics/MethodLength.
Constructor Details
#initialize(options) ⇒ SampleManifestRedirect
Returns a new instance of SampleManifestRedirect.
7 8 9 10 11 |
# File 'lib/label_printer/label/sample_manifest_redirect.rb', line 7 def initialize() @sample_manifest = [:sample_manifest] @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/sample_manifest_redirect.rb', line 5 def @options end |
#sample_manifest ⇒ Object (readonly)
Returns the value of attribute sample_manifest.
5 6 7 |
# File 'lib/label_printer/label/sample_manifest_redirect.rb', line 5 def sample_manifest @sample_manifest end |
Instance Method Details
#labels ⇒ Object
rubocop:todo Metrics/MethodLength
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/label_printer/label/sample_manifest_redirect.rb', line 13 def labels # rubocop:todo Metrics/MethodLength case sample_manifest.asset_type when 'plate', 'library_plate' if @printer_type_class.double_label? SampleManifestPlateDouble.new().labels else SampleManifestPlate.new().labels end when '1dtube', 'library' SampleManifestTube.new().labels when 'multiplexed_library' SampleManifestMultiplex.new().labels end end |