Module: DualSourcedLibrary
- Extended by:
- ActiveSupport::Concern
- Included in:
- Ont::Library, Pacbio::Library
- Defined in:
- app/models/concerns/dual_sourced_library.rb
Overview
Include in a library record to provide a #source_identifier method based on libraries with a single source well or tube
Instance Method Summary collapse
-
#source_identifier ⇒ String
Identifies the plate and well from which the library was created Typically in the format: DN123:A1.
Instance Method Details
#source_identifier ⇒ String
Identifies the plate and well from which the library was created Typically in the format: DN123:A1.
26 27 28 |
# File 'app/models/concerns/dual_sourced_library.rb', line 26 def source_identifier source_well&.identifier || source_tube&.identifier end |