Class: MultiplexedLibraryTube

Inherits:
Tube
  • Object
show all
Extended by:
Asset::Stock::CanCreateStockAsset
Includes:
Api::MultiplexedLibraryTubeIO::Extensions, Asset::SharedLibraryTubeBehaviour, ModelExtensions::MultiplexedLibraryTube, Transfer::Associations
Defined in:
app/models/multiplexed_library_tube.rb

Direct Known Subclasses

QcTube

Instance Attribute Summary

Attributes included from AssetRefactor::Labware::Methods

#storage_location_service

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Asset::Stock::CanCreateStockAsset

extended, is_a_stock_asset?

Methods included from Asset::SharedLibraryTubeBehaviour

#library_source_plates

Methods included from Transfer::Associations

included

Methods included from Api::MultiplexedLibraryTubeIO::Extensions

included, #json_root

Methods inherited from Tube

#after_comment_addition, #ancestor_of_purpose, #barcode!, #comments, create_with_barcode!, delegate_to_purpose, #details, #name_for_child_tube, #name_for_label, #pool_id, #sanger_barcode=, #source_plate, #subject_type, #submission

Methods included from QcFile::Associations

#has_qc_files

Methods included from AssetRefactor::Labware::Methods

#labware, #labwhere_location, #scanned_in_date, #storage_location

Methods included from Transfer::State::TubeState

included

Methods included from Asset::Ownership::Unowned

#change_owner_to

Methods included from Tag::Associations

#untag!

Methods included from Barcode::Barcodeable

#aker_barcode, #aker_barcode=, #any_barcode_matching?, #barcode_format, #barcode_number, #cgap_barcode, #cgap_barcode=, #external_barcode, #external_barcode=, #external_identifier, #fluidigm_barcode, #fluidigm_barcode=, #generate_barcode, included, #infinium_barcode, #infinium_barcode=, #prefix, #primary_barcode, #printable_target, #sanger_barcode

Class Method Details

.stock_asset_purposeObject


33
34
35
# File 'app/models/multiplexed_library_tube.rb', line 33

def self.stock_asset_purpose
  Tube::Purpose.stock_mx_tube
end

.stock_asset_typeObject


29
30
31
# File 'app/models/multiplexed_library_tube.rb', line 29

def self.stock_asset_type
  StockMultiplexedLibraryTube
end

Instance Method Details

#asset_type_for_request_typesObject

Returns the type of asset that can be considered appropriate for request types.


17
18
19
# File 'app/models/multiplexed_library_tube.rb', line 17

def asset_type_for_request_types
  LibraryTube
end

#roleObject


25
26
27
# File 'app/models/multiplexed_library_tube.rb', line 25

def role
  order_roles.first.try(:role)
end

#teamObject


21
22
23
# File 'app/models/multiplexed_library_tube.rb', line 21

def team
  creation_requests.first&.product_line
end

#transfer_requestsObject

Transfer requests into a tube are direct requests where the tube is the target.


12
13
14
# File 'app/models/multiplexed_library_tube.rb', line 12

def transfer_requests
  transfer_requests_as_target
end