Class: Gps::Nmea::Gll
Instance Attribute Summary collapse
-
#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.
Attributes inherited from Sentence
Instance Method Summary collapse
-
#initialize(line) ⇒ Gll
constructor
A new instance of Gll.
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) ⇒ Gll
6 7 8 9 10 |
# File 'lib/gps/nmea/gll.rb', line 6 def initialize(line) @line = line fill_parts fill_data end |
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude.
4 5 6 |
# File 'lib/gps/nmea/gll.rb', line 4 def latitude @latitude end |
#latitude_direction ⇒ Object
Returns the value of attribute latitude_direction.
4 5 6 |
# File 'lib/gps/nmea/gll.rb', line 4 def latitude_direction @latitude_direction end |
#longitude ⇒ Object
Returns the value of attribute longitude.
4 5 6 |
# File 'lib/gps/nmea/gll.rb', line 4 def longitude @longitude end |
#longitude_direction ⇒ Object
Returns the value of attribute longitude_direction.
4 5 6 |
# File 'lib/gps/nmea/gll.rb', line 4 def longitude_direction @longitude_direction end |