Class: Well

Inherits:
ApplicationRecord show all
Includes:
Container
Defined in:
app/models/well.rb

Overview

Well

Instance Method Summary collapse

Instance Method Details

#columnObject



28
29
30
# File 'app/models/well.rb', line 28

def column
  position[1..].to_i
end

#identifierObject



32
33
34
# File 'app/models/well.rb', line 32

def identifier
  "#{plate&.barcode}:#{position}"
end

#labware_typeObject



36
37
38
# File 'app/models/well.rb', line 36

def labware_type
  self.class.name.downcase
end

#rowObject



24
25
26
# File 'app/models/well.rb', line 24

def row
  position[0]
end