Class: Gps::Nmea::Vtg
Instance Attribute Summary collapse
-
#magnetic_track ⇒ Object
Returns the value of attribute magnetic_track.
-
#speed_kmh ⇒ Object
Returns the value of attribute speed_kmh.
-
#speed_knots ⇒ Object
Returns the value of attribute speed_knots.
-
#true_track ⇒ Object
Returns the value of attribute true_track.
Attributes inherited from Sentence
Instance Method Summary collapse
-
#initialize(line) ⇒ Vtg
constructor
A new instance of Vtg.
Methods inherited from Sentence
#checksum_valid?, date_part_to_str, #generate_checksum, #get_checksum, #has_coordinates?, #has_datetime?, #lat_dec, #lat_long_dec, #long_dec, parse, time_part_to_str, #to_h, #to_json
Constructor Details
#initialize(line) ⇒ Vtg
Returns a new instance of Vtg.
6 7 8 9 10 |
# File 'lib/gps/nmea/vtg.rb', line 6 def initialize(line) @line = line fill_parts fill_data end |
Instance Attribute Details
#magnetic_track ⇒ Object
Returns the value of attribute magnetic_track.
4 5 6 |
# File 'lib/gps/nmea/vtg.rb', line 4 def magnetic_track @magnetic_track end |
#speed_kmh ⇒ Object
Returns the value of attribute speed_kmh.
4 5 6 |
# File 'lib/gps/nmea/vtg.rb', line 4 def speed_kmh @speed_kmh end |
#speed_knots ⇒ Object
Returns the value of attribute speed_knots.
4 5 6 |
# File 'lib/gps/nmea/vtg.rb', line 4 def speed_knots @speed_knots end |
#true_track ⇒ Object
Returns the value of attribute true_track.
4 5 6 |
# File 'lib/gps/nmea/vtg.rb', line 4 def true_track @true_track end |