Class: LibraryTube
- Extended by:
- Asset::Stock::CanCreateStockAsset
- Includes:
- Api::LibraryTubeIo::Extensions, Asset::SharedLibraryTubeBehaviour, ModelExtensions::LibraryTube
- Defined in:
- app/models/library_tube.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Labware
Class Method Summary collapse
Instance Method Summary collapse
-
#library_information ⇒ Object
rubocop:todo Metrics/AbcSize.
Methods included from Asset::Stock::CanCreateStockAsset
Methods included from Asset::SharedLibraryTubeBehaviour
Methods included from Api::LibraryTubeIo::Extensions
Methods inherited from Tube
#after_comment_addition, #barcode!, #comments, create_with_barcode!, delegate_to_purpose, #details, #name_for_child_tube, #name_for_label, #pool_id, #sanger_barcode=, #stock_plate, #subject_type, #submission
Methods included from QcFile::Associations
Methods included from SingleReceptacleLabware
Methods included from Transfer::State::TubeState
Methods included from Transfer::Associations
Methods included from Asset::Ownership::Unowned
Methods included from Tag::Associations
Methods included from Barcode::Barcodeable
#any_barcode_matching?, #barcode_format, #barcode_number, #cgap_barcode, #cgap_barcode=, #external_barcode, #external_barcode=, #external_identifier, #fluidigm_barcode, #fluidigm_barcode=, #foreign_barcode=, #generate_barcode, included, #infinium_barcode, #infinium_barcode=, #prefix, #primary_barcode, #printable_target, #sanger_barcode
Methods inherited from Labware
#ancestor_of_purpose, #ancestors_of_purpose, #child, #display_name, #external_identifier, find_by_barcode, find_from_any_barcode, #generate_name, #labware, #labwhere_location, labwhere_locations, #parent, #received_date, #retention_instructions, #role, #scanned_in_date, #source_plate, #source_plates, #spiked_in_buffer, #state, #storage_location
Methods included from SharedBehaviour::Named
Methods included from AssetLink::Associations
Methods included from Uuid::Uuidable
included, #unsaved_uuid!, #uuid
Methods included from Commentable
Methods inherited from Asset
#ancestor_of_purpose, #asset_type_for_request_types, #barcode_number, #compatible_purposes, #contained_samples, #details, #generate_barcode, #get_qc_result_value_for, #has_stock_asset?, #label, #label=, #original_stock_plates, #prefix, #printable?, #printable_target, #register_stock!, #request_types, #type, #update_from_qc
Methods included from EventfulRecord
#has_many_events, #has_many_lab_events, #has_one_event_with_family
Methods included from Event::PlateEvents
#event_date, #fluidigm_stamp_date, #gel_qc_date, #pico_date, #qc_started_date, #sequenom_stamp_date
Methods inherited from ApplicationRecord
alias_association, convert_labware_to_receptacle_for, find_by_id_or_name, find_by_id_or_name!
Methods included from Squishify
Class Method Details
.stock_asset_purpose ⇒ Object
12 13 14 |
# File 'app/models/library_tube.rb', line 12 def self.stock_asset_purpose Tube::Purpose.stock_library_tube end |
.stock_asset_type ⇒ Object
8 9 10 |
# File 'app/models/library_tube.rb', line 8 def self.stock_asset_type StockLibraryTube end |
Instance Method Details
#library_information ⇒ Object
rubocop:todo Metrics/AbcSize
16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'app/models/library_tube.rb', line 16 def library_information # rubocop:todo Metrics/AbcSize tag = aliquots.first.tag tag2 = aliquots.first.tag2 { library_type: aliquots.first.library_type, insert_size_from: aliquots.first.insert_size_from, insert_size_to: aliquots.first.insert_size_to }.tap do |tag_hash| tag_hash[:tag] = tag.summary if tag tag_hash.merge!(tag2: tag2.summary) if tag2 end end |