Class: OMF::OML::OmlTuple
- Defined in:
- lib/omf_oml/oml_tuple.rb
Overview
This class represents a single vector from an OML measurement stream. It provides various methods to access the vectors elements.
NOTE: Do not store the vector itself, but make a copy as the instance may be reused over various rows by the sender.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Tuple
Instance Method Summary collapse
Methods inherited from Tuple
#[], #create_table, #initialize, #on_new_tuple, #parse_tuple, #select, #to_a
Constructor Details
This class inherits a constructor from OMF::OML::Tuple
Instance Method Details
#seq_no ⇒ Object
39 40 41 |
# File 'lib/omf_oml/oml_tuple.rb', line 39 def seq_no @raw[1].to_i end |
#ts ⇒ Object
end
35 36 37 |
# File 'lib/omf_oml/oml_tuple.rb', line 35 def ts @raw[0].to_f end |