Class: Tube

Inherits:
ApplicationRecord show all
Includes:
Container, Labware
Defined in:
app/models/tube.rb

Overview

Tube

Constant Summary

Constants included from Labware

Labware::ID_PREFIXES

Instance Method Summary collapse

Methods included from Labware

#generate_barcode

Instance Method Details

#identifierObject



40
41
42
# File 'app/models/tube.rb', line 40

def identifier
  barcode
end

#labware_typeObject



48
49
50
# File 'app/models/tube.rb', line 48

def labware_type
  self.class.name.downcase
end

#positionObject



44
45
46
# File 'app/models/tube.rb', line 44

def position
  nil
end