Class: SampleManifest::SharedTubeBehaviour::Base

Inherits:
Object
  • Object
show all
Includes:
CoreBehaviour::Shared
Defined in:
app/models/sample_manifest/shared_tube_behaviour.rb

Instance Method Summary collapse

Methods included from CoreBehaviour::Shared

#details, #generate_sanger_ids, included

Instance Method Details

#details_arrayObject


9
10
11
12
13
14
15
16
# File 'app/models/sample_manifest/shared_tube_behaviour.rb', line 9

def details_array
  sample_manifest_assets.includes(asset: :barcodes).map do |sample_manifest_asset|
    {
      barcode: sample_manifest_asset.human_barcode,
      sample_id: sample_manifest_asset.sanger_sample_id
    }
  end
end

#updated_by!(user, samples) ⇒ Object


5
6
7
# File 'app/models/sample_manifest/shared_tube_behaviour.rb', line 5

def updated_by!(user, samples)
  # Does nothing at the moment
end