Module: Sequencescape::Behaviour::Barcoded

Included in:
Sequencescape::BarcodedAsset, Plate, Tube
Defined in:
lib/sequencescape/behaviour/barcoded.rb

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/sequencescape/behaviour/barcoded.rb', line 4

def self.included(base)
  base.class_eval do
    attribute_group :barcode do
      attribute_accessor :prefix, :number     # The pieces that make up a barcode
      attribute_accessor :ean13               # The EAN13 barcode number
      attribute_accessor :machine             # The barcode printed on the label
      attribute_accessor :two_dimensional     # The 2D barcode
      attribute_accessor :type                # The type of barcode (or rather barcode printer)
    end
  end
end