Class: Ont::Pool

Inherits:
ApplicationRecord show all
Includes:
DualSourcedPool, Uuidable
Defined in:
app/models/ont/pool.rb

Overview

Pool

Constant Summary collapse

VOLUME_CONCENTRATION_MULTIPLIER =

Constants used in final_library_amount calculation

1_000_000
INSERT_SIZE_MULTIPLIER =
660

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DualSourcedPool

#source_identifier

Methods included from Uuidable

#add_uuid

Instance Attribute Details

#barcodeObject

Returns the value of attribute barcode.



10
11
12
# File 'app/models/ont/pool.rb', line 10

def barcode
  @barcode
end

Instance Method Details

#library_attributes=(library_options) ⇒ Object



42
43
44
45
46
47
48
49
50
# File 'app/models/ont/pool.rb', line 42

def library_attributes=(library_options)
  self.libraries = library_options.map do |attributes|
    if attributes['id']
      update_library(attributes)
    else
      Ont::Library.new(attributes)
    end
  end
end