Class: Ont::Library

Inherits:
ApplicationRecord show all
Includes:
DualSourcedLibrary, Librarian, Material, Uuidable
Defined in:
app/models/ont/library.rb

Overview

Ont::Library

Instance Method Summary collapse

Methods included from DualSourcedLibrary

#source_identifier

Methods included from Librarian

#active?, #deactivate, #set_state

Methods included from Uuidable

#add_uuid

Methods included from Material

#container=

Instance Method Details

#collection?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'app/models/ont/library.rb', line 26

def collection?
  false
end

#tag_barcodeObject

The tag.group_id ‘Barcode’ used for sample sheet generation



31
32
33
# File 'app/models/ont/library.rb', line 31

def tag_barcode
  tag&.group_id
end