Class: Well
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Well
- Includes:
- Container
- Defined in:
- app/models/well.rb
Overview
Well
Instance Method Summary collapse
Instance Method Details
#column ⇒ Object
28 29 30 |
# File 'app/models/well.rb', line 28 def column position[1..].to_i end |
#identifier ⇒ Object
32 33 34 |
# File 'app/models/well.rb', line 32 def identifier "#{plate&.}:#{position}" end |
#labware_type ⇒ Object
36 37 38 |
# File 'app/models/well.rb', line 36 def labware_type self.class.name.downcase end |
#row ⇒ Object
24 25 26 |
# File 'app/models/well.rb', line 24 def row position[0] end |