Class: Gps::Nmea::Rmc
- Includes:
- HasDatetime
- Defined in:
- lib/gps/nmea/rmc.rb
Instance Attribute Summary collapse
-
#data_status ⇒ Object
Returns the value of attribute data_status.
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#latitude_direction ⇒ Object
Returns the value of attribute latitude_direction.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#longitude_direction ⇒ Object
Returns the value of attribute longitude_direction.
-
#speed_knots ⇒ Object
Returns the value of attribute speed_knots.
-
#true_track ⇒ Object
Returns the value of attribute true_track.
-
#variation ⇒ Object
Returns the value of attribute variation.
-
#variation_direction ⇒ Object
Returns the value of attribute variation_direction.
Attributes included from HasDatetime
#date_str, #datetime, #time_str
Attributes inherited from Sentence
Instance Method Summary collapse
-
#initialize(line) ⇒ Rmc
constructor
A new instance of Rmc.
Methods included from HasDatetime
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) ⇒ Rmc
Returns a new instance of Rmc.
12 13 14 15 16 17 |
# File 'lib/gps/nmea/rmc.rb', line 12 def initialize(line) @line = line fill_parts fill_data update_datetime end |
Instance Attribute Details
#data_status ⇒ Object
Returns the value of attribute data_status.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def data_status @data_status end |
#latitude ⇒ Object
Returns the value of attribute latitude.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def latitude @latitude end |
#latitude_direction ⇒ Object
Returns the value of attribute latitude_direction.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def latitude_direction @latitude_direction end |
#longitude ⇒ Object
Returns the value of attribute longitude.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def longitude @longitude end |
#longitude_direction ⇒ Object
Returns the value of attribute longitude_direction.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def longitude_direction @longitude_direction end |
#speed_knots ⇒ Object
Returns the value of attribute speed_knots.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def speed_knots @speed_knots end |
#true_track ⇒ Object
Returns the value of attribute true_track.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def true_track @true_track end |
#variation ⇒ Object
Returns the value of attribute variation.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def variation @variation end |
#variation_direction ⇒ Object
Returns the value of attribute variation_direction.
8 9 10 |
# File 'lib/gps/nmea/rmc.rb', line 8 def variation_direction @variation_direction end |