Class: Gps::Nmea::Gga
Instance Attribute Summary collapse
-
#age_of_diff ⇒ Object
Returns the value of attribute age_of_diff.
-
#altitude ⇒ Object
Returns the value of attribute altitude.
-
#altitude_unit ⇒ Object
Returns the value of attribute altitude_unit.
-
#fix_quality ⇒ Object
Returns the value of attribute fix_quality.
-
#hdop ⇒ Object
Returns the value of attribute hdop.
-
#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.
-
#num_satellites ⇒ Object
Returns the value of attribute num_satellites.
-
#time ⇒ Object
Returns the value of attribute time.
-
#time_str ⇒ Object
Returns the value of attribute time_str.
Attributes inherited from Sentence
Instance Method Summary collapse
-
#initialize(line) ⇒ Gga
constructor
A new instance of Gga.
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) ⇒ Gga
Returns a new instance of Gga.
10 11 12 13 14 |
# File 'lib/gps/nmea/gga.rb', line 10 def initialize(line) @line = line fill_parts fill_data end |
Instance Attribute Details
#age_of_diff ⇒ Object
Returns the value of attribute age_of_diff.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def age_of_diff @age_of_diff end |
#altitude ⇒ Object
Returns the value of attribute altitude.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def altitude @altitude end |
#altitude_unit ⇒ Object
Returns the value of attribute altitude_unit.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def altitude_unit @altitude_unit end |
#fix_quality ⇒ Object
Returns the value of attribute fix_quality.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def fix_quality @fix_quality end |
#hdop ⇒ Object
Returns the value of attribute hdop.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def hdop @hdop end |
#latitude ⇒ Object
Returns the value of attribute latitude.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def latitude @latitude end |
#latitude_direction ⇒ Object
Returns the value of attribute latitude_direction.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def latitude_direction @latitude_direction end |
#longitude ⇒ Object
Returns the value of attribute longitude.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def longitude @longitude end |
#longitude_direction ⇒ Object
Returns the value of attribute longitude_direction.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def longitude_direction @longitude_direction end |
#num_satellites ⇒ Object
Returns the value of attribute num_satellites.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def num_satellites @num_satellites end |
#time ⇒ Object
Returns the value of attribute time.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def time @time end |
#time_str ⇒ Object
Returns the value of attribute time_str.
6 7 8 |
# File 'lib/gps/nmea/gga.rb', line 6 def time_str @time_str end |