Module: SampleManifest::CoreBehaviour::LibraryAssets

Included in:
LibraryPlateBehaviour::Core, LibraryTubeBehaviour::Core, MultiplexedLibraryBehaviour::Core
Defined in:
app/models/sample_manifest/core_behaviour.rb

Overview

rubocop:todo Style/Documentation

Instance Method Summary collapse

Instance Method Details

#generate_sample_and_aliquot(sanger_sample_id, receptacle) ⇒ Object


50
51
52
53
54
55
# File 'app/models/sample_manifest/core_behaviour.rb', line 50

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

Returns:

  • (Boolean)

57
58
59
# File 'app/models/sample_manifest/core_behaviour.rb', line 57

def stocks?
  false
end