Class: NMEAPlus::Message::NMEA::OLN::OmegaLanePair
- Inherits:
-
Object
- Object
- NMEAPlus::Message::NMEA::OLN::OmegaLanePair
- Defined in:
- lib/nmea_plus/message/nmea/oln.rb
Overview
container for Omega lane indicators
Instance Attribute Summary collapse
-
#first ⇒ Float
first item in the pair.
- #label ⇒ String
-
#second ⇒ Float
second item in the pair.
Instance Method Summary collapse
-
#initialize(arr) ⇒ OmegaLanePair
constructor
A new instance of OmegaLanePair.
Constructor Details
#initialize(arr) ⇒ OmegaLanePair
Returns a new instance of OmegaLanePair.
25 26 27 28 29 |
# File 'lib/nmea_plus/message/nmea/oln.rb', line 25 def initialize(arr) @label = arr[0] @first = arr[1].to_i @second = arr[2].to_i end |
Instance Attribute Details
#first ⇒ Float
first item in the pair
18 19 20 |
# File 'lib/nmea_plus/message/nmea/oln.rb', line 18 def first @first end |
#label ⇒ String
14 15 16 |
# File 'lib/nmea_plus/message/nmea/oln.rb', line 14 def label @label end |
#second ⇒ Float
second item in the pair
22 23 24 |
# File 'lib/nmea_plus/message/nmea/oln.rb', line 22 def second @second end |