Module: SampleManifest::CoreBehaviour::Shared
- Included in:
- PlateBehaviour::Base, SharedTubeBehaviour::Base
- Defined in:
- app/models/sample_manifest/core_behaviour.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
16 17 18 19 20 21 22 23 24 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 16 def self.included(base) base.class_eval do delegate :create_sample, to: :@manifest delegate :samples, :sample_manifest_assets, :barcodes, :study, to: :@manifest delegate :count, to: :@manifest delegate :study, to: :@manifest delegate :purpose, to: :@manifest end end |
Instance Method Details
#details ⇒ Object
30 31 32 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 30 def details(&) details_array.each(&) end |
#generate_sanger_ids(count = 1) ⇒ Object
26 27 28 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 26 def generate_sanger_ids(count = 1) Array.new(count) { SangerSampleId::Factory.instance.next! } end |