Module: SampleManifest::CoreBehaviour::LibraryAssets
- Included in:
- LibraryPlateBehaviour::Core, LibraryTubeBehaviour::Core, MultiplexedLibraryBehaviour::Core
- Defined in:
- app/models/sample_manifest/core_behaviour.rb
Overview
Used for ready-made libraries. Ensures that the library_id gets set
Instance Method Summary collapse
Instance Method Details
#generate_sample_and_aliquot(sanger_sample_id, receptacle) ⇒ Object
69 70 71 72 73 74 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 69 def generate_sample_and_aliquot(sanger_sample_id, receptacle) create_sample(sanger_sample_id).tap do |sample| receptacle.aliquots.create!(sample: sample, study: study, library: receptacle) study.samples << sample end end |
#stocks? ⇒ Boolean
76 77 78 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 76 def stocks? false end |