Module: SampleManifest::CoreBehaviour::Shared
- Included in:
- PlateBehaviour::Base, SharedTubeBehaviour::Base
- Defined in:
- app/models/sample_manifest/core_behaviour.rb
Overview
rubocop:todo Style/Documentation
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 12 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(&block) ⇒ Object
26 27 28 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 26 def details(&block) details_array.each(&block) end |
#generate_sanger_ids(count = 1) ⇒ Object
22 23 24 |
# File 'app/models/sample_manifest/core_behaviour.rb', line 22 def generate_sanger_ids(count = 1) Array.new(count) { SangerSampleId::Factory.instance.next! } end |