Class: VisionMate::Tube
- Inherits:
-
Object
- Object
- VisionMate::Tube
- Defined in:
- lib/vision_mate/tube.rb
Overview
Tube provides barcode and other meta information for each individual test tube inside the rack. Tube’s are usually returned as a collection within a ‘Rack` object once a scan is performed.
Instance Attribute Summary collapse
-
#barcode ⇒ Object
Returns the value of attribute barcode.
-
#position ⇒ Object
Returns the value of attribute position.
Class Method Summary collapse
Instance Method Summary collapse
- #empty? ⇒ Boolean
-
#initialize(barcode, position) ⇒ Tube
constructor
A new instance of Tube.
Constructor Details
#initialize(barcode, position) ⇒ Tube
Returns a new instance of Tube.
15 16 17 18 |
# File 'lib/vision_mate/tube.rb', line 15 def initialize(, position) self. = self.position = position end |
Instance Attribute Details
#barcode ⇒ Object
Returns the value of attribute barcode.
7 8 9 |
# File 'lib/vision_mate/tube.rb', line 7 def @barcode end |
#position ⇒ Object
Returns the value of attribute position.
7 8 9 |
# File 'lib/vision_mate/tube.rb', line 7 def position @position end |
Class Method Details
Instance Method Details
#empty? ⇒ Boolean
20 21 22 |
# File 'lib/vision_mate/tube.rb', line 20 def empty? false end |